hgext/schemes.py
changeset 31297 198cd5ad9db8
parent 31191 150cd5125722
child 32376 46ba2cdda476
equal deleted inserted replaced
31296:16539e32ebe0 31297:198cd5ad9db8
    61 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
    61 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
    62 # be specifying the version(s) of Mercurial they are tested with, or
    62 # be specifying the version(s) of Mercurial they are tested with, or
    63 # leave the attribute unspecified.
    63 # leave the attribute unspecified.
    64 testedwith = 'ships-with-hg-core'
    64 testedwith = 'ships-with-hg-core'
    65 
    65 
    66 _partre = re.compile(r'\{(\d+)\}'.encode(u'latin1'))
    66 _partre = re.compile(br'\{(\d+)\}')
    67 
    67 
    68 class ShortRepository(object):
    68 class ShortRepository(object):
    69     def __init__(self, url, scheme, templater):
    69     def __init__(self, url, scheme, templater):
    70         self.scheme = scheme
    70         self.scheme = scheme
    71         self.templater = templater
    71         self.templater = templater