changeset 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 16539e32ebe0
children 718a57e95a89
files hgext/schemes.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):