# HG changeset patch # User Alex Gaynor # Date 2017-08-23 01:09:08 # Node ID 8d75b9effa070362969d1f9acd3ac1c5948d8b76 # Parent 6a49c74b1e8f4a1949cfd44562c83b2160ff942d bundle2: fixed usage of an attribute that was removed in py3k Differential Revision: https://phab.mercurial-scm.org/D482 diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -587,7 +587,7 @@ class bundle20(object): """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 @@ class unbundle20(unpackermixin): """ 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()]