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
fea73efc
Commit
fea73efc
authored
Apr 27, 2012
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14605: Don't error out if get_importer() returns None.
parent
6d3b3218
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1099 additions
and
1104 deletions
+1099
-1104
Lib/pkgutil.py
Lib/pkgutil.py
+2
-0
Python/importlib.h
Python/importlib.h
+1097
-1104
No files found.
Lib/pkgutil.py
View file @
fea73efc
...
...
@@ -466,6 +466,8 @@ def find_loader(fullname):
platform-specific special import locations such as the Windows registry.
"""
for
importer
in
iter_importers
(
fullname
):
if
importer
is
None
:
continue
loader
=
importer
.
find_module
(
fullname
)
if
loader
is
not
None
:
return
loader
...
...
Python/importlib.h
View file @
fea73efc
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