Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-332

Syntax error line 44 of connectionpool.py contains backslash characters

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.15
    • Generic
    • None
    • Linux
    • 3.13.7

    Description

      When I execute a python script which uses mariadb, I see the following warning message:

      ...python3.13/site-packages/mariadb/connectionpool.py:44:
      SyntaxWarning: invalid escape sequence '*'

      • ***kwargs* - Optional additional connection arguments, as described in m
        ariadb.connect() method.

      This would prevent the script from running if it attempted to use connection pooling.

      You could perhaps use # at the beginning of the line instead of using triple quotes to comment out the block. I have edited connectionpool.py to delete the backslashes.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            peter.talbot@petertalbot.net Peter Talbot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.