Skip to content

autogen/doc.py: add missing 'r' prefix to the verb_loop regex - #235

Merged
dimpase merged 1 commit into
sagemath:mainfrom
orlitzky:verb_loop_raw
Oct 4, 2026
Merged

dimpase merged 1 commit into
sagemath:mainfrom
orlitzky:verb_loop_raw

Conversation

@orlitzky

@orlitzky orlitzky commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Fix the warning,

autogen/doc.py:21: SyntaxWarning: "\[" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\["? A raw string is also an option.
  verb_loop = re.compile("^(    .*)@\[[a-z]*\]", re.MULTILINE)

by adding the missing 'r' prefix to that regex.

Fix the warning,

  autogen/doc.py:21: SyntaxWarning: "\[" is an invalid escape
  sequence. Such sequences will not work in the future. Did you mean
  "\\["? A raw string is also an option.

    verb_loop = re.compile("^(    .*)@\[[a-z]*\]", re.MULTILINE)

by adding the missing 'r' prefix to that regex.
@dimpase
dimpase merged commit 3d7553e into sagemath:main Oct 4, 2026
19 checks passed
@dimpase

dimpase commented Oct 4, 2026

Copy link
Copy Markdown
Member

Thanks

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.

2 participants