diff hgext/convert/hg.py @ 36134:2a28bdb63f05

convert: make hg sha1 regex consistently be a bytes Differential Revision: https://phab.mercurial-scm.org/D2222
author Augie Fackler <augie@google.com>
date Mon, 12 Feb 2018 23:51:37 -0500
parents 42a393ea56d2
children 0f9e52f900c4
line wrap: on
line diff
--- 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):