summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-05 22:37:50 (GMT)
committerBrett Cannon <brett@python.org>2013-06-05 22:37:50 (GMT)
commit4e694d6fa9f1fbdf1de137214deceac4cd87e091 (patch)
tree56e29bddeca68aaf667dc49c969e07ebe29d415f /Lib
parentac0ad884d1ecd684c392410720b27381b2316730 (diff)
downloadcpython-4e694d6fa9f1fbdf1de137214deceac4cd87e091.zip
cpython-4e694d6fa9f1fbdf1de137214deceac4cd87e091.tar.gz
cpython-4e694d6fa9f1fbdf1de137214deceac4cd87e091.tar.bz2
tweak exception message (again)
Diffstat (limited to 'Lib')
-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 62be36a..679b347 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 = '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: