convert: make hg sha1 regex consistently be a bytes
authorAugie Fackler <augie@google.com>
Mon, 12 Feb 2018 23:51:37 -0500
changeset 36134 2a28bdb63f05
parent 36133 6df206ef4b10
child 36135 8b33eb349e0b
convert: make hg sha1 regex consistently be a bytes Differential Revision: https://phab.mercurial-scm.org/D2222
hgext/convert/hg.py
--- a/hgext/convert/hg.py	Mon Feb 12 23:51:18 2018 -0500
+++ b/hgext/convert/hg.py	Mon Feb 12 23:51:37 2018 -0500
@@ -42,7 +42,7 @@
 mapfile = common.mapfile
 NoRepo = common.NoRepo
 
-sha1re = re.compile(r'\b[0-9a-f]{12,40}\b')
+sha1re = re.compile(br'\b[0-9a-f]{12,40}\b')
 
 class mercurial_sink(common.converter_sink):
     def __init__(self, ui, repotype, path):