summaryrefslogtreecommitdiffstats
path: root/Doc/tools/listmodules.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-21 02:11:39 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-21 02:11:39 (GMT)
commit65d09d4ee984d569424e11415f30d6af209ef558 (patch)
tree8b94fe73e8dbf38622ef2bff089310197956eb08 /Doc/tools/listmodules.py
parent89df245607619ed532106fbbdbf80745815f9c96 (diff)
downloadcpython-65d09d4ee984d569424e11415f30d6af209ef558.zip
cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.gz
cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.bz2
Run 2to3 over Doc/tools/.
Diffstat (limited to 'Doc/tools/listmodules.py')
-rw-r--r--Doc/tools/listmodules.py5
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