Skip to content

fix: replace invalid escape sequences in docstrings#782

Open
Subh24ai wants to merge 1 commit intoOWASP:mainfrom
Subh24ai:fix/invalid-escape-sequences
Open

fix: replace invalid escape sequences in docstrings#782
Subh24ai wants to merge 1 commit intoOWASP:mainfrom
Subh24ai:fix/invalid-escape-sequences

Conversation

@Subh24ai
Copy link

@Subh24ai Subh24ai commented Mar 4, 2026

Problem

Two docstrings contained bare \d and \S escape sequences in regular
strings, causing DeprecationWarning: invalid escape sequence in Python 3.12+.
These warnings appeared in every test run.

Fix

Replaced bare escape sequences with properly escaped versions (\\d, \\S)
in docstrings:

  • application/database/db.py line 1809
  • application/web/web_main.py line 467

Verification

python -W error -c "import application.database.db"       # no warnings
python -W error -c "import application.web.web_main"      # no warnings

109 tests passing.

Replace bare \d and \S in docstrings with escaped versions \d and \S
to fix DeprecationWarning: invalid escape sequence in Python 3.12+

Affected files:
- application/database/db.py: line 1809
- application/web/web_main.py: line 467
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