##// END OF EJS Templates
patch: make regular expressions bytes by adding b''
Pulkit Goyal -
r31630:451c980a default
parent child Browse files
Show More
@@ -42,8 +42,8 b' from . import ('
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
General Comments 0
You need to be logged in to leave comments. Login now