Skip to content

Use a raw string for a regex#1

Open
gilramir wants to merge 1 commit intorcowham:mainfrom
gilramir:regex_fix
Open

Use a raw string for a regex#1
gilramir wants to merge 1 commit intorcowham:mainfrom
gilramir:regex_fix

Conversation

@gilramir
Copy link

When using Python 3.13, Python gives a SyntaxWarning for the _diff_tree_pattern regular expression.
Python complains: invalid escape syntax '\d'

This fix uses a raw string for that regular expression string literal.

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

Comments