summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index f8a1b0b..62be36a 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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 = 'incomplete timestamp in {!r}'.format(name)
+ message = 'reached EOF while reading magic number in {!r}'.format(name)
_verbose_message(message)
raise EOFError(message)
elif len(raw_size) != 4:
- message = 'incomplete size in {!r}'.format(name)
+ message = 'reached EOF while reading size in {!r}'.format(name)
_verbose_message(message)
raise EOFError(message)
if source_stats is not None: