Show More
@@ -653,7 +653,9 b' class bundle20(object):' | |||||
653 | """add a stream level parameter""" |
|
653 | """add a stream level parameter""" | |
654 | if not name: |
|
654 | if not name: | |
655 | raise error.ProgrammingError(b'empty parameter name') |
|
655 | raise error.ProgrammingError(b'empty parameter name') | |
656 |
if name[0:1] not in pycompat.bytestr( |
|
656 | if name[0:1] not in pycompat.bytestr( | |
|
657 | string.ascii_letters # pytype: disable=wrong-arg-types | |||
|
658 | ): | |||
657 | raise error.ProgrammingError( |
|
659 | raise error.ProgrammingError( | |
658 | b'non letter first character: %s' % name |
|
660 | b'non letter first character: %s' % name | |
659 | ) |
|
661 | ) | |
@@ -836,7 +838,9 b' class unbundle20(unpackermixin):' | |||||
836 | """ |
|
838 | """ | |
837 | if not name: |
|
839 | if not name: | |
838 | raise ValueError(r'empty parameter name') |
|
840 | raise ValueError(r'empty parameter name') | |
839 |
if name[0:1] not in pycompat.bytestr( |
|
841 | if name[0:1] not in pycompat.bytestr( | |
|
842 | string.ascii_letters # pytype: disable=wrong-arg-types | |||
|
843 | ): | |||
840 | raise ValueError(r'non letter first character: %s' % name) |
|
844 | raise ValueError(r'non letter first character: %s' % name) | |
841 | try: |
|
845 | try: | |
842 | handler = b2streamparamsmap[name.lower()] |
|
846 | handler = b2streamparamsmap[name.lower()] |
General Comments 0
You need to be logged in to leave comments.
Login now