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
44590e47
Commit
44590e47
authored
Apr 14, 2012
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some comments.
parent
2217c46a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+2
-0
No files found.
Lib/importlib/_bootstrap.py
View file @
44590e47
...
...
@@ -805,6 +805,7 @@ class _FileFinder:
else
:
cache
=
self
.
_path_cache
cache_module
=
tail_module
# Check if the module is the name of a directory (and thus a package).
if
cache_module
in
cache
:
base_path
=
_path_join
(
self
.
path
,
tail_module
)
if
_path_isdir
(
base_path
):
...
...
@@ -816,6 +817,7 @@ class _FileFinder:
else
:
msg
=
"Not importing directory {}: missing __init__"
_warnings
.
warn
(
msg
.
format
(
base_path
),
ImportWarning
)
# Check for a file w/ a proper suffix exists.
for
suffix
,
loader
in
self
.
modules
:
if
cache_module
+
suffix
in
cache
:
full_path
=
_path_join
(
self
.
path
,
tail_module
+
suffix
)
...
...
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