Mercurial > public > mercurial-scm > hg
diff hgext/schemes.py @ 31288:198cd5ad9db8
schemes: use br'' literal to define bytes regexp
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 09 Mar 2017 19:41:40 -0800 |
parents | 150cd5125722 |
children | 46ba2cdda476 |
line wrap: on
line diff
--- a/hgext/schemes.py Thu Mar 09 12:55:48 2017 +0900 +++ b/hgext/schemes.py Thu Mar 09 19:41:40 2017 -0800 @@ -63,7 +63,7 @@ # 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):