Skip to content

SyntaxWarning: invalid escape sequence #62

@cclauss

Description

@cclauss

Fixed in #55

https://docs.python.org/3/reference/lexical_analysis.html#unrecognized-escape-sequences

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

https://docs.python.org/3/whatsnew/3.12.html#other-language-changes

.venv/lib/python3.13/site-packages/httpbin/helpers.py:38: SyntaxWarning: invalid escape sequence '_'

\_;`"---"`|//

venv/lib/python3.13/site-packages/httpbin/helpers.py:84: SyntaxWarning: invalid escape sequence '\ '
\ .-" "-. /

\ .-"` `"-. /

venv/lib/python3.13/site-packages/httpbin/helpers.py:444: SyntaxWarning: invalid escape sequence '\s'
match = re.search('\s*(W/)?"?([^"])"?\s', part)

match = re.search('\s*(W/)?\"?([^"]*)\"?\s*', part)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions