changeset 31630: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 2632df096fc0
children a7acda2de4b8
files mercurial/patch.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Mar 26 20:49:18 2017 +0530
+++ b/mercurial/patch.py	Sun Mar 26 20:54:50 2017 +0530
@@ -42,8 +42,8 @@
 )
 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