Skip to content

Conversation

@tirkarthi
Copy link
Contributor

Fixes #71

@techtonik techtonik merged commit 249e2af into techtonik:master Jan 1, 2021
@techtonik
Copy link
Owner

I could confirm the deprecation warnings on Python 3:

$ python3 -Walways -m py_compile patch.py 
patch.py:340: DeprecationWarning: invalid escape sequence \d
  re_hunk_start = re.compile(b"^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@")
patch.py:519: DeprecationWarning: invalid escape sequence \+
  re_filename = b"^\+\+\+ ([^\t]+)"
patch.py:545: DeprecationWarning: invalid escape sequence \d
  match = re.match(b"^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@(.*)", line)

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.

Deprecation warnings over invalid escape sequences in Python 3.7

2 participants