tweak exception message (again)

This commit is contained in:
Brett Cannon 2013-06-05 18:37:50 -04:00
parent ac0ad884d1
commit 4e694d6fa9
2 changed files with 2314 additions and 2313 deletions

View file

@ -668,11 +668,11 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
_verbose_message(message)
raise ImportError(message, **exc_details)
elif len(raw_timestamp) != 4:
message = 'reached EOF while reading magic number in {!r}'.format(name)
message = 'reached EOF while reading timestamp in {!r}'.format(name)
_verbose_message(message)
raise EOFError(message)
elif len(raw_size) != 4:
message = 'reached EOF while reading size in {!r}'.format(name)
message = 'reached EOF while reading size of source in {!r}'.format(name)
_verbose_message(message)
raise EOFError(message)
if source_stats is not None: