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.
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 @@
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]