← 输入框|github.com|刷新
Skip to content

Escape sequence error for python 3.12.9 #128

Closed

Description

@aakashres

Changed in version 3.12: Unrecognized escape sequences produce a SyntaxWarning. In a future Python version they will be eventually a SyntaxError.

I found two places in py-postgressql with this issue.
Unpacking python3-postgresql (1.2.1+git20180803.ef7b9a9-4build5) ...
Setting up python3-postgresql (1.2.1+git20180803.ef7b9a9-4build5) ...
/usr/lib/python3/dist-packages/postgresql/protocol/element3.py:260: SyntaxWarning: invalid escape sequence '\c'
return self.data.strip(b'\c\n\t 0123456789') or None
/usr/lib/python3/dist-packages/postgresql/python/command.py:223: SyntaxWarning: invalid escape sequence '\s'
"Configure environment variables. \set without arguments to show all")
/usr/lib/python3/dist-packages/postgresql/types/init.py:611: SyntaxWarning: invalid escape sequence '*'

Activity

  1. jwp commented on Mar 9, 2025

    @jwp
    Contributor

    Thanks.

  2. added a commit that references this issue on Mar 16, 2025
    6ce9885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions