##// END OF EJS Templates
py3: add b'' prefix to make the regex bytes...
Pulkit Goyal -
r37600:39ced3ef default
parent child Browse files
Show More
@@ -144,7 +144,7 b' class converter_source(object):'
144 """ fails if revstr is not a 40 byte hex. mercurial and git both uses
144 """ fails if revstr is not a 40 byte hex. mercurial and git both uses
145 such format for their revision numbering
145 such format for their revision numbering
146 """
146 """
147 if not re.match(r'[0-9a-fA-F]{40,40}$', revstr):
147 if not re.match(br'[0-9a-fA-F]{40,40}$', revstr):
148 raise error.Abort(_('%s entry %s is not a valid revision'
148 raise error.Abort(_('%s entry %s is not a valid revision'
149 ' identifier') % (mapname, revstr))
149 ' identifier') % (mapname, revstr))
150
150
General Comments 0
You need to be logged in to leave comments. Login now