Mercurial > hg-stable
changeset 33901:8d75b9effa07
bundle2: fixed usage of an attribute that was removed in py3k
Differential Revision: https://phab.mercurial-scm.org/D482
author | Alex Gaynor <alex.gaynor@gmail.com> |
---|---|
date | Wed, 23 Aug 2017 01:09:08 +0000 |
parents | 6a49c74b1e8f |
children | e5d104c35e51 |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Sun Aug 13 19:58:45 2017 +0530 +++ b/mercurial/bundle2.py Wed Aug 23 01:09:08 2017 +0000 @@ -587,7 +587,7 @@ """add a stream level parameter""" if not name: raise ValueError('empty parameter name') - if name[0] not in string.letters: + if name[0] not in pycompat.bytestr(string.ascii_letters): raise ValueError('non letter first character: %r' % name) self._params.append((name, value)) @@ -765,7 +765,7 @@ """ if not name: raise ValueError('empty parameter name') - if name[0] not in string.letters: + if name[0] not in pycompat.bytestr(string.ascii_letters): raise ValueError('non letter first character: %r' % name) try: handler = b2streamparamsmap[name.lower()]