diff options
Diffstat (limited to 'Doc/tools/listmodules.py')
-rw-r--r-- | Doc/tools/listmodules.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tools/listmodules.py b/Doc/tools/listmodules.py index 5f3ea02..8acdf43 100644 --- a/Doc/tools/listmodules.py +++ b/Doc/tools/listmodules.py @@ -40,8 +40,7 @@ def main(): for p in path: modules.update(getmodules(p)) - keys = modules.keys() - keys.sort() + keys = sorted(modules.keys()) # filter out known test packages def cb(m): @@ -79,7 +78,7 @@ def main(): if out is not sys.stdout: out.close() - print out.name, "ok (%d modules)" % len(modules) + print(out.name, "ok (%d modules)" % len(modules)) def getmodules(p): # get modules in a given directory |