bundle2: fixed usage of an attribute that was removed in py3k
authorAlex Gaynor <alex.gaynor@gmail.com>
Wed, 23 Aug 2017 01:09:08 +0000
changeset 33882 8d75b9effa07
parent 33881 6a49c74b1e8f
child 33883 e5d104c35e51
bundle2: fixed usage of an attribute that was removed in py3k Differential Revision: https://phab.mercurial-scm.org/D482
mercurial/bundle2.py
--- 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()]