Patchwork D2222: convert: make hg sha1 regex consistently be a bytes

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2018, 5:06 a.m.
Message ID <differential-rev-PHID-DREV-7ulcshelwsa7ubwwgzig-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27802/
State Superseded
Headers show

Comments

phabricator - Feb. 13, 2018, 5:06 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2222

AFFECTED FILES
  hgext/convert/hg.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py
--- a/hgext/convert/hg.py
+++ b/hgext/convert/hg.py
@@ -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):