mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
tweak exception message (again)
This commit is contained in:
parent
ac0ad884d1
commit
4e694d6fa9
2 changed files with 2314 additions and 2313 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue