# HG changeset patch # User Yuya Nishihara # Date 2017-03-10 03:41:40 # Node ID 198cd5ad9db8b887b0287a6d0a07ff51dccab214 # Parent 16539e32ebe074a120218067592b304684abbd7f schemes: use br'' literal to define bytes regexp diff --git a/hgext/schemes.py b/hgext/schemes.py --- a/hgext/schemes.py +++ b/hgext/schemes.py @@ -63,7 +63,7 @@ command = cmdutil.command(cmdtable) # leave the attribute unspecified. testedwith = 'ships-with-hg-core' -_partre = re.compile(r'\{(\d+)\}'.encode(u'latin1')) +_partre = re.compile(br'\{(\d+)\}') class ShortRepository(object): def __init__(self, url, scheme, templater):