Mercurial > hg
comparison mercurial/util.py @ 41834:7f63ec6969f3
global: use raw strings for namedtuple()
Otherwise Python 2 will attempt to coerce unicode to str, which
we don't want.
Differential Revision: https://phab.mercurial-scm.org/D6049
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Mar 2019 12:57:00 -0800 |
parents | ae189674bdad |
children | 3e47d1ec9da5 |
comparison
equal
deleted
inserted
replaced
41833:89f01ea906ae | 41834:7f63ec6969f3 |
---|---|
3209 # compression code | 3209 # compression code |
3210 | 3210 |
3211 SERVERROLE = 'server' | 3211 SERVERROLE = 'server' |
3212 CLIENTROLE = 'client' | 3212 CLIENTROLE = 'client' |
3213 | 3213 |
3214 compewireprotosupport = collections.namedtuple(u'compenginewireprotosupport', | 3214 compewireprotosupport = collections.namedtuple(r'compenginewireprotosupport', |
3215 (u'name', u'serverpriority', | 3215 (r'name', r'serverpriority', |
3216 u'clientpriority')) | 3216 r'clientpriority')) |
3217 | 3217 |
3218 class compressormanager(object): | 3218 class compressormanager(object): |
3219 """Holds registrations of various compression engines. | 3219 """Holds registrations of various compression engines. |
3220 | 3220 |
3221 This class essentially abstracts the differences between compression | 3221 This class essentially abstracts the differences between compression |