diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-24 18:39:47 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-24 18:39:47 (GMT) |
commit | 093c97a36f92d0cb24a8ae9930ba9f93b4f2be06 (patch) | |
tree | 0d7e5f9bdedea3c19949b6b1ffe7f31dd19e26f2 /Doc/tools | |
parent | 684f78fafe30cd2f1dd6c9e9853d0a02943015d2 (diff) | |
download | cpython-093c97a36f92d0cb24a8ae9930ba9f93b4f2be06.zip cpython-093c97a36f92d0cb24a8ae9930ba9f93b4f2be06.tar.gz cpython-093c97a36f92d0cb24a8ae9930ba9f93b4f2be06.tar.bz2 |
ignore_from_idx(): Fixed bug in regular expression.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-x | Doc/tools/listmodules | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tools/listmodules b/Doc/tools/listmodules index b000199..e0c4fc6 100755 --- a/Doc/tools/listmodules +++ b/Doc/tools/listmodules @@ -66,7 +66,7 @@ def main(): if data[:1] == "\\": ignore_from_idx(data, ignore_dict) else: - ignore_from_filelist(data, ignore_dict) + ignore_from_modulelist(data, ignore_dict) if args or (annotate and categorize): usage() sys.exit(2) @@ -135,13 +135,13 @@ def main(): print string.join(modules, "\n") -def ignore_from_filelist(data, ignore_dict): +def ignore_from_modulelist(data, ignore_dict): for name in string.split(data): ignore_dict[name] = name def ignore_from_idx(data, ignore_dict): data = string.replace(data, r"\hackscore {}", "_") - rx = re.compile(r"\indexentry {([^@]*)@") + rx = re.compile(r"\\indexentry\s*{([^@]*)@") for line in string.split(data, "\n"): m = rx.match(line) if m: |