mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
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:
parent
a05460c148
commit
498cb15306
2 changed files with 17 additions and 14 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue