# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-03-26 15:24:50 # Node ID 451c980a8b574288cedcecbf696510e55105e8a3 # Parent 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 patch: make regular expressions bytes by adding b'' diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -42,8 +42,8 @@ from . import ( ) stringio = util.stringio -gitre = re.compile('diff --git a/(.*) b/(.*)') -tabsplitter = re.compile(r'(\t+|[^\t]+)') +gitre = re.compile(br'diff --git a/(.*) b/(.*)') +tabsplitter = re.compile(br'(\t+|[^\t]+)') class PatchError(Exception): pass