diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-05 06:42:44 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-05 06:42:44 (GMT) |
commit | 515a74fbf9c5eb6a5dbc7cbbb5b3910eab966466 (patch) | |
tree | f6412d90558e5840ca1d8803cc01f14733ce46a4 /Lib/pkgutil.py | |
parent | 2fef5b4a83f274dfe1a1b44be735b66913541cbe (diff) | |
download | cpython-515a74fbf9c5eb6a5dbc7cbbb5b3910eab966466.zip cpython-515a74fbf9c5eb6a5dbc7cbbb5b3910eab966466.tar.gz cpython-515a74fbf9c5eb6a5dbc7cbbb5b3910eab966466.tar.bz2 |
Issue 4005: Remove .sort() call on dict_keys object.
This caused pydoc to fail when there was a zip file in sys.path.
Patch contributed by Amaury Forgeot d'Arc.
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 27dd887..0ec6ec5 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -318,8 +318,7 @@ try: from zipimport import zipimporter def iter_zipimport_modules(importer, prefix=''): - dirlist = zipimport._zip_directory_cache[importer.archive].keys() - dirlist.sort() + dirlist = sorted(zipimport._zip_directory_cache[importer.archive]) _prefix = importer.prefix plen = len(_prefix) yielded = {} |