mercurial/patch.py
changeset 38052 468797392cc6
parent 38048 b403e87df069
child 38084 86e0a4bede5d
--- a/mercurial/patch.py	Fri May 18 19:52:35 2018 -0400
+++ b/mercurial/patch.py	Fri May 18 19:54:50 2018 -0400
@@ -51,7 +51,7 @@
 gitre = re.compile(br'diff --git a/(.*) b/(.*)')
 tabsplitter = re.compile(br'(\t+|[^\t]+)')
 wordsplitter = re.compile(br'(\t+| +|[a-zA-Z0-9_\x80-\xff]+|'
-                          '[^ \ta-zA-Z0-9_\x80-\xff])')
+                          b'[^ \ta-zA-Z0-9_\x80-\xff])')
 
 PatchError = error.PatchError