Mercurial > hg-stable
comparison mercurial/patch.py @ 31635:451c980a8b57
patch: make regular expressions bytes by adding b''
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 26 Mar 2017 20:54:50 +0530 |
parents | a8023a64c40d |
children | a7acda2de4b8 |
comparison
equal
deleted
inserted
replaced
31634:2632df096fc0 | 31635:451c980a8b57 |
---|---|
40 util, | 40 util, |
41 vfs as vfsmod, | 41 vfs as vfsmod, |
42 ) | 42 ) |
43 stringio = util.stringio | 43 stringio = util.stringio |
44 | 44 |
45 gitre = re.compile('diff --git a/(.*) b/(.*)') | 45 gitre = re.compile(br'diff --git a/(.*) b/(.*)') |
46 tabsplitter = re.compile(r'(\t+|[^\t]+)') | 46 tabsplitter = re.compile(br'(\t+|[^\t]+)') |
47 | 47 |
48 class PatchError(Exception): | 48 class PatchError(Exception): |
49 pass | 49 pass |
50 | 50 |
51 | 51 |