diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-04-14 13:01:11 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-04-14 13:01:11 (GMT) |
commit | 685bd4a37a22678b3f97bbbc24da908696c9fcd5 (patch) | |
tree | 32b4925e07b42a9d3b77fc525fd16240f19352e1 /Lib/pkgutil.py | |
parent | 8b4c7198dbc0f61a58822a5be92355a5206cd0b6 (diff) | |
parent | c4e0d982f3b967973553c99722b1e4002c8b35f6 (diff) | |
download | cpython-685bd4a37a22678b3f97bbbc24da908696c9fcd5.zip cpython-685bd4a37a22678b3f97bbbc24da908696c9fcd5.tar.gz cpython-685bd4a37a22678b3f97bbbc24da908696c9fcd5.tar.bz2 |
Merge fix for #16163 from 3.3
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 8fa8405..1901a5b 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -449,8 +449,8 @@ def iter_importers(fullname=""): if '.' in fullname: # Get the containing package's __path__ pkg_name = fullname.rpartition(".")[0] - pkg = importlib.import_module(pkg) - path = getattr(sys.modules[pkg], '__path__', None) + pkg = importlib.import_module(pkg_name) + path = getattr(pkg, '__path__', None) if path is None: return else: |