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
27e2a720
Commit
27e2a720
authored
Feb 13, 2007
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #685268: Consider a package's __path__ in imputil.
Will backport.
parent
9815183c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/imputil.py
Lib/imputil.py
+4
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/imputil.py
View file @
27e2a720
...
...
@@ -552,6 +552,10 @@ class _FilesystemImporter(Importer):
# This method is only used when we look for a module within a package.
assert
parent
for
submodule_path
in
parent
.
__path__
:
code
=
self
.
_import_pathname
(
_os_path_join
(
submodule_path
,
modname
),
fqname
)
if
code
is
not
None
:
return
code
return
self
.
_import_pathname
(
_os_path_join
(
parent
.
__pkgdir__
,
modname
),
fqname
)
...
...
Misc/NEWS
View file @
27e2a720
...
...
@@ -128,6 +128,8 @@ Core and builtins
Library
-------
- Patch #685268: Consider a package'
s
__path__
in
imputil
.
-
Patch
1463026
:
Support
default
namespace
in
XMLGenerator
.
-
Patch
1571379
:
Make
trace
's --ignore-dir facility work in the face of
...
...
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