Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3220d6

Browse files
committed
Tweak an exception message
1 parent ef0a44c commit f3220d6

2 files changed

Lines changed: 2947 additions & 2947 deletions

File tree

Lib/importlib/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
646646
raw_timestamp = data[4:8]
647647
raw_size = data[8:12]
648648
if magic != _MAGIC_BYTES:
649-
msg = 'incomplete magic number in {!r}: {!r}'.format(name, magic)
649+
msg = 'bad magic number in {!r}: {!r}'.format(name, magic)
650650
raise ImportError(msg, **exc_details)
651651
elif len(raw_timestamp) != 4:
652652
message = 'incomplete timestamp in {!r}'.format(name)

0 commit comments

Comments
 (0)