bundle2: more pytype suppressions around bytestring
We clearly need to work around this somehow.
Differential Revision: https://phab.mercurial-scm.org/D7291
--- a/mercurial/bundle2.py Wed Nov 06 16:26:53 2019 -0500
+++ b/mercurial/bundle2.py Wed Nov 06 17:19:33 2019 -0500
@@ -653,7 +653,9 @@
"""add a stream level parameter"""
if not name:
raise error.ProgrammingError(b'empty parameter name')
- if name[0:1] not in pycompat.bytestr(string.ascii_letters):
+ if name[0:1] not in pycompat.bytestr(
+ string.ascii_letters # pytype: disable=wrong-arg-types
+ ):
raise error.ProgrammingError(
b'non letter first character: %s' % name
)
@@ -836,7 +838,9 @@
"""
if not name:
raise ValueError(r'empty parameter name')
- if name[0:1] not in pycompat.bytestr(string.ascii_letters):
+ if name[0:1] not in pycompat.bytestr(
+ string.ascii_letters # pytype: disable=wrong-arg-types
+ ):
raise ValueError(r'non letter first character: %s' % name)
try:
handler = b2streamparamsmap[name.lower()]