patch: make regular expressions bytes by adding b''

This commit is contained in:
Pulkit Goyal 2017-03-26 20:54:50 +05:30
parent dbc47c9005
commit dbbae871d3

View File

@ -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