Changeset 391 for python/trunk/Lib/idlelib/PathBrowser.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/idlelib/PathBrowser.py
r2 r391 3 3 import imp 4 4 5 from TreeWidget import TreeItem6 from ClassBrowser import ClassBrowser, ModuleBrowserTreeItem5 from idlelib.TreeWidget import TreeItem 6 from idlelib.ClassBrowser import ClassBrowser, ModuleBrowserTreeItem 7 7 8 8 class PathBrowser(ClassBrowser): … … 79 79 if normed_name[i:] == suff: 80 80 mod_name = name[:i] 81 if not modules.has_key(mod_name):81 if mod_name not in modules: 82 82 modules[mod_name] = None 83 83 sorted.append((normed_name, name)) … … 87 87 88 88 def main(): 89 import PyShell89 from idlelib import PyShell 90 90 PathBrowser(PyShell.flist) 91 91 if sys.stdin is sys.__stdin__: … … 93 93 94 94 if __name__ == "__main__": 95 main() 95 from unittest import main 96 main('idlelib.idle_test.test_pathbrowser', verbosity=2, exit=False)
Note:
See TracChangeset
for help on using the changeset viewer.