Skip to content

Commit

Permalink
Merge pull request #91 from rraval/patch-1
Browse files Browse the repository at this point in the history
Raw strings for RE_BINARY_DIFF
  • Loading branch information
matiasb authored Feb 3, 2022
2 parents 68e0fa5 + 976066a commit dab260e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unidiff/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

RE_BINARY_DIFF = re.compile(
r'^Binary files? '
'(?P<source_filename>[^\t]+?)(?:\t(?P<source_timestamp>[\s0-9:\+-]+))?'
'(?: and (?P<target_filename>[^\t]+?)(?:\t(?P<target_timestamp>[\s0-9:\+-]+))?)? (differ|has changed)')
r'(?P<source_filename>[^\t]+?)(?:\t(?P<source_timestamp>[\s0-9:\+-]+))?'
r'(?: and (?P<target_filename>[^\t]+?)(?:\t(?P<target_timestamp>[\s0-9:\+-]+))?)? (differ|has changed)')

DEFAULT_ENCODING = 'UTF-8'

Expand Down

0 comments on commit dab260e

Please sign in to comment.