summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkmodindex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/mkmodindex')
-rwxr-xr-xDoc/tools/mkmodindex4
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]