summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-05-13 20:54:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-05-13 20:54:19 (GMT)
commit25e4461666181222c48132ef32e35fc6ab1231ea (patch)
tree57d70a2900d9d6203800ca2b7806ecf5fa84f096 /Doc/tools
parent7072559db9cfa6f841a66950a483f8b157555e90 (diff)
downloadcpython-25e4461666181222c48132ef32e35fc6ab1231ea.zip
cpython-25e4461666181222c48132ef32e35fc6ab1231ea.tar.gz
cpython-25e4461666181222c48132ef32e35fc6ab1231ea.tar.bz2
Remove references to stdwin which was removed long ago.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/listmodules13
1 files changed, 6 insertions, 7 deletions
diff --git a/Doc/tools/listmodules b/Doc/tools/listmodules
index 03e7b5d..ad4d95e 100755
--- a/Doc/tools/listmodules
+++ b/Doc/tools/listmodules
@@ -34,12 +34,11 @@ import getopt
import glob
import os
import re
-import string
import sys
-REMOVE_DIRS = ["dos-8x3", "encodings", "distutils",
- "lib-old", "lib-stdwin", "test"]
+REMOVE_DIRS = ["encodings", "distutils",
+ "lib-old", ""test"]
def main():
@@ -156,17 +155,17 @@ def main():
else:
modules = modules_by_name.keys()
modules.sort()
- print string.join(modules, "\n")
+ print "\n".join(modules)
def ignore_from_modulelist(data, ignore_dict):
- for name in string.split(data):
+ for name in data.split():
ignore_dict[name] = name
def ignore_from_idx(data, ignore_dict):
- data = string.replace(data, r"\hackscore {}", "_")
+ data = data.replace(r"\hackscore {}", "_")
rx = re.compile(r"\\indexentry\s*{([^@]*)@")
- for line in string.split(data, "\n"):
+ for line in data.split("\n"):
m = rx.match(line)
if m:
name = m.group(1)