diff options
author | Brett Cannon <brett@python.org> | 2013-01-27 18:04:56 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-01-27 18:04:56 (GMT) |
commit | f3220d6af7ebe89a1fe7876b4e6b7bc876c87e26 (patch) | |
tree | b3cff386eb4cfde2fc00a404c735a071b698b542 /Lib/importlib | |
parent | ef0a44c629b84036edee5b4513159299993a7524 (diff) | |
download | cpython-f3220d6af7ebe89a1fe7876b4e6b7bc876c87e26.zip cpython-f3220d6af7ebe89a1fe7876b4e6b7bc876c87e26.tar.gz cpython-f3220d6af7ebe89a1fe7876b4e6b7bc876c87e26.tar.bz2 |
Tweak an exception message
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index fa3a243..292c4e1 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -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) |