[PATCH 6 of 6 py3] schemes: move re construction to module-level and python3-ify

Augie Fackler raf at durin42.com
Tue Mar 7 14:18:21 EST 2017


> On Mar 7, 2017, at 9:03 AM, Yuya Nishihara <yuya at tcha.org> wrote:
> 
>> diff --git a/hgext/schemes.py b/hgext/schemes.py
>> --- a/hgext/schemes.py
>> +++ b/hgext/schemes.py
>> @@ -63,6 +63,7 @@ command = cmdutil.command(cmdtable)
>> # leave the attribute unspecified.
>> testedwith = 'ships-with-hg-core'
>> 
>> +_partre = re.compile(r'\{(\d+)\}'.encode(u'latin1'))
> 
> Maybe this could be br'' ?

Very likely it should be. I just was doing enough tap dancing to get a little further on Python 3, hopefully the end of this series will help us make faster progress now that we have --debugger working in Python 3.


More information about the Mercurial-devel mailing list