##// END OF EJS Templates
pure parsers: properly detect corrupt index files...
Augie Fackler -
r14421:639f26ca default
parent child Browse files
Show More
@@ -56,6 +56,9 b' def parse_index2(data, inline):'
56 n += 1
56 n += 1
57 off += s
57 off += s
58
58
59 if off != len(data):
60 raise ValueError('corrupt index file')
61
59 if index:
62 if index:
60 e = list(index[0])
63 e = list(index[0])
61 type = gettype(e[0])
64 type = gettype(e[0])
General Comments 0
You need to be logged in to leave comments. Login now