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.
This commit is contained in:
Fred Drake 2001-02-12 19:12:55 +00:00
parent a05460c148
commit 498cb15306
2 changed files with 17 additions and 14 deletions

View file

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