diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-02-13 08:35:01 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-02-13 08:35:01 +0000 |
commit | ef67690eac7ada908a04e5d0d7c32c98fe941480 (patch) | |
tree | 9f626968ec51a9187660740c92f2f92dc7a7f064 | |
parent | 626b2e992fc54233716c79627e5e4ce833ff9f12 (diff) | |
download | cpython-git-ef67690eac7ada908a04e5d0d7c32c98fe941480.tar.gz |
Patch #685268: Consider a package's __path__ in imputil.
-rw-r--r-- | Lib/imputil.py | 4 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py index 8a49bb14ff..675a634db3 100644 --- a/Lib/imputil.py +++ b/Lib/imputil.py @@ -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) @@ -169,6 +169,8 @@ Extension Modules 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 |