263
266
for record_names, read_bytes in self.iter_records():
267
271
# Check that the name is unique. Note that Python will refuse
268
272
# to decode non-shortest forms of UTF-8 encoding, so there is no
269
273
# risk that the same unicode string has been encoded two
274
278
excess_bytes = self.reader_func(1)
276
280
raise errors.ContainerHasExcessDataError(excess_bytes)