diff options
Diffstat (limited to 'languages/python/kde_pydoc.py')
-rwxr-xr-x | languages/python/kde_pydoc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/languages/python/kde_pydoc.py b/languages/python/kde_pydoc.py index 0516f172..eb7c6b44 100755 --- a/languages/python/kde_pydoc.py +++ b/languages/python/kde_pydoc.py @@ -7,7 +7,7 @@ __version__ = "6 April 2006" import sys, imp, os, stat, re, types, cgi from repr import Repr -from string import expandtabs, find, join, lower, split, strip, rstrip +from string import expandtabs, tqfind, join, lower, split, strip, rstrip import pydoc @@ -16,19 +16,19 @@ import pydoc def cleanlinks(string): """Changes the links to work with the pydoc:-notation""" finalstring = "" - string = str(string).replace(".html","") + string = str(string).tqreplace(".html","") pos = 0 mark = "<a href=\"" l = len(mark) while(pos != -1): opos = pos - pos = string.find(mark, pos) + pos = string.tqfind(mark, pos) if(pos == -1): finalstring += string[opos:] break finalstring += string[opos:pos+l] pos+=l - if(string[pos] == '#' or string.find(":/",pos, pos+10) != -1): #leave local jumps or external references untouched + if(string[pos] == '#' or string.tqfind(":/",pos, pos+10) != -1): #leave local jumps or external references untouched continue finalstring += "pydoc:" if(string[pos] == "." and string[pos+1] == "\""): |