mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Tweak an exception message
This commit is contained in:
parent
ef0a44c629
commit
f3220d6af7
2 changed files with 2977 additions and 2977 deletions
|
@ -646,7 +646,7 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
|
|||
raw_timestamp = data[4:8]
|
||||
raw_size = data[8:12]
|
||||
if magic != _MAGIC_BYTES:
|
||||
msg = 'incomplete magic number in {!r}: {!r}'.format(name, magic)
|
||||
msg = 'bad magic number in {!r}: {!r}'.format(name, magic)
|
||||
raise ImportError(msg, **exc_details)
|
||||
elif len(raw_timestamp) != 4:
|
||||
message = 'incomplete timestamp in {!r}'.format(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue