##// END OF EJS Templates
bundle2: portably grab first byte of part name for letter check
Augie Fackler -
r34281:2bdd55ab default
parent child Browse files
Show More
@@ -615,7 +615,7 class bundle20(object):
615 """add a stream level parameter"""
615 """add a stream level parameter"""
616 if not name:
616 if not name:
617 raise ValueError(r'empty parameter name')
617 raise ValueError(r'empty parameter name')
618 if name[0] not in pycompat.bytestr(string.ascii_letters):
618 if name[0:1] not in pycompat.bytestr(string.ascii_letters):
619 raise ValueError(r'non letter first character: %s' % name)
619 raise ValueError(r'non letter first character: %s' % name)
620 self._params.append((name, value))
620 self._params.append((name, value))
621
621
General Comments 0
You need to be logged in to leave comments. Login now