##// END OF EJS Templates
bundle2: fix parttype enforcement...
Matt Mackall -
r23916:a3f7c781 default
parent child Browse files
Show More
@@ -85,7 +85,7 b' Binary format is as follow'
85 85
86 86 :typesize: (one byte)
87 87
88 :parttype: alphanumerical part name (restricted to ^a-zA-Z0-9_:-])
88 :parttype: alphanumerical part name (restricted to [a-zA-Z0-9_:-]*)
89 89
90 90 :partid: A 32bits integer (unique in the bundle) that can be used to refer
91 91 to this part.
@@ -176,7 +176,7 b' preferedchunksize = 4096'
176 176
177 177 def validateparttype(parttype):
178 178 """raise ValueError if a parttype contains invalid character"""
179 if _parttypeforbidden.match(parttype):
179 if _parttypeforbidden.search(parttype):
180 180 raise ValueError(parttype)
181 181
182 182 def _makefpartparamsizes(nbparams):
General Comments 0
You need to be logged in to leave comments. Login now