changeset 37582:39ced3ef586d

py3: add b'' prefix to make the regex bytes # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3281
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 12 Apr 2018 15:23:36 +0530
parents 5b836a4c9a1f
children 6939b6ac960a
files hgext/convert/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py	Thu Apr 12 15:22:56 2018 +0530
+++ b/hgext/convert/common.py	Thu Apr 12 15:23:36 2018 +0530
@@ -144,7 +144,7 @@
         """ fails if revstr is not a 40 byte hex. mercurial and git both uses
             such format for their revision numbering
         """
-        if not re.match(r'[0-9a-fA-F]{40,40}$', revstr):
+        if not re.match(br'[0-9a-fA-F]{40,40}$', revstr):
             raise error.Abort(_('%s entry %s is not a valid revision'
                                ' identifier') % (mapname, revstr))