220
221
field_count = len(fields)
221
222
# this checks our adjustment, and also catches file too short.
222
223
if field_count - cur != expected_field_count:
224
225
'field count incorrect %s != %s, entry_size=%s, '\
225
226
'num_entries=%s fields=%r' % (
226
227
field_count - cur, expected_field_count, entry_size,