schemes: use br'' literal to define bytes regexp
authorYuya Nishihara <yuya@tcha.org>
Thu, 09 Mar 2017 19:41:40 -0800
changeset 31288 198cd5ad9db8
parent 31287 16539e32ebe0
child 31289 718a57e95a89
schemes: use br'' literal to define bytes regexp
hgext/schemes.py
--- 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):