Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4e694d6f
Commit
4e694d6f
authored
Jun 05, 2013
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak exception message (again)
parent
ac0ad884
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2307 additions
and
2306 deletions
+2307
-2306
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+2
-2
Python/importlib.h
Python/importlib.h
+2305
-2304
No files found.
Lib/importlib/_bootstrap.py
View file @
4e694d6f
...
@@ -668,11 +668,11 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
...
@@ -668,11 +668,11 @@ def _validate_bytecode_header(data, source_stats=None, name=None, path=None):
_verbose_message
(
message
)
_verbose_message
(
message
)
raise
ImportError
(
message
,
**
exc_details
)
raise
ImportError
(
message
,
**
exc_details
)
elif
len
(
raw_timestamp
)
!=
4
:
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
)
_verbose_message
(
message
)
raise
EOFError
(
message
)
raise
EOFError
(
message
)
elif
len
(
raw_size
)
!=
4
:
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
)
_verbose_message
(
message
)
raise
EOFError
(
message
)
raise
EOFError
(
message
)
if
source_stats
is
not
None
:
if
source_stats
is
not
None
:
...
...
Python/importlib.h
View file @
4e694d6f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment