diff options
author | Fred Drake <fdrake@acm.org> | 2001-02-12 19:12:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-02-12 19:12:55 (GMT) |
commit | 498cb1530615af3b989e7c1c420346a07911b43a (patch) | |
tree | a04d6ed6e3c207c7e4e3356bbf81b09f0bb1ddef /Doc/tools/mkmodindex | |
parent | a05460c148ef88e3a9430427adb660d8c253140d (diff) | |
download | cpython-498cb1530615af3b989e7c1c420346a07911b43a.zip cpython-498cb1530615af3b989e7c1c420346a07911b43a.tar.gz cpython-498cb1530615af3b989e7c1c420346a07911b43a.tar.bz2 |
Jon Nelson <jnelson@users.sourceforge.net>:
Make the documentation tools work with Python 1.5.2.
[Slightly modified from submitted patch. --FLD]
This closes SF bug #132005.
Diffstat (limited to 'Doc/tools/mkmodindex')
-rwxr-xr-x | Doc/tools/mkmodindex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/mkmodindex b/Doc/tools/mkmodindex index b0211a7..5f2da0e 100755 --- a/Doc/tools/mkmodindex +++ b/Doc/tools/mkmodindex @@ -52,8 +52,8 @@ class Node(buildindex.Node): annotation = "" def __init__(self, link, str, seqno): - parts = str.split(None, 1) - if parts[0].endswith("</tt>"): + parts = string.split(str, None, 1) + if parts[0][-5:] == "</tt>": self.modname = parts[0][:-5] else: self.modname = parts[0] |