# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-12 09:53:36 # Node ID 39ced3ef586d5f94782a109a3d842a3947ff93b7 # Parent 5b836a4c9a1f3ebfcd44fb62be52e56222fcd7aa py3: add b'' prefix to make the regex bytes # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3281 diff --git a/hgext/convert/common.py b/hgext/convert/common.py --- a/hgext/convert/common.py +++ b/hgext/convert/common.py @@ -144,7 +144,7 @@ class converter_source(object): """ 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))