Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
31287:16539e32ebe0 | 31288: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 |