Skip to content

Fix invalid escape sequences in module docstrings (crawlytics, robotstxt)#412

Open
danishashko wants to merge 2 commits intoeliasdabbas:masterfrom
danishashko:fix/invalid-escape-sequences
Open

Fix invalid escape sequences in module docstrings (crawlytics, robotstxt)#412
danishashko wants to merge 2 commits intoeliasdabbas:masterfrom
danishashko:fix/invalid-escape-sequences

Conversation

@danishashko
Copy link
Copy Markdown

Python 3.12 raises SyntaxWarning for invalid escape sequences in regular strings (like \_, \*). These have been DeprecationWarning since 3.6.

crawlytics.py and robotstxt.py both have module-level docstrings with backslash sequences used for RST markup. The fix is to prefix the opening """ with r to make them raw strings, which is the standard approach for docstrings containing backslash patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant