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
0cfb81d1
Commit
0cfb81d1
authored
Sep 17, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a local name (it was intended to be used but overlooked).
This was caught in the distutils2 repo by pyflakes.
parent
7724a6c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/pkgutil.py
Lib/pkgutil.py
+2
-2
No files found.
Lib/pkgutil.py
View file @
0cfb81d1
...
...
@@ -307,9 +307,9 @@ class ImpLoader:
def
get_filename
(
self
,
fullname
=
None
):
fullname
=
self
.
_fix_name
(
fullname
)
mod_type
=
self
.
etc
[
2
]
if
self
.
etc
[
2
]
==
imp
.
PKG_DIRECTORY
:
if
mod_type
==
imp
.
PKG_DIRECTORY
:
return
self
.
_get_delegate
().
get_filename
()
elif
self
.
etc
[
2
]
in
(
imp
.
PY_SOURCE
,
imp
.
PY_COMPILED
,
imp
.
C_EXTENSION
):
elif
mod_type
in
(
imp
.
PY_SOURCE
,
imp
.
PY_COMPILED
,
imp
.
C_EXTENSION
):
return
self
.
filename
return
None
...
...
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