Skip to content

Fix SyntaxWarning: invalid escape sequence in regex strings#421

Open
SAY-5 wants to merge 1 commit into
JasonGross:masterfrom
SAY-5:fix-syntaxwarning-regex
Open

Fix SyntaxWarning: invalid escape sequence in regex strings#421
SAY-5 wants to merge 1 commit into
JasonGross:masterfrom
SAY-5:fix-syntaxwarning-regex

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

Fixes #420.

Adds r prefix to regex pattern strings in coq_tools/move_vernaculars.py and coq_tools/proof_using_helper.py so Python 3.12+ no longer emits SyntaxWarning: invalid escape sequence when importing the package.

Behavior is unchanged: the byte-level string contents are identical, since the unrecognized escapes (\(, \s, \.) were already being treated as literal backslash + character.

@SAY-5 SAY-5 deployed to update-requirements May 12, 2026 05:44 — with GitHub Actions Active
@JasonGross JasonGross enabled auto-merge (squash) May 12, 2026 05:44
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.

Regex strings missing r prefix

1 participant