diff options
Diffstat (limited to 'lib/kformula/scripts/bynames.py')
-rwxr-xr-x | lib/kformula/scripts/bynames.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kformula/scripts/bynames.py b/lib/kformula/scripts/bynames.py index 50fac994..0829cf90 100755 --- a/lib/kformula/scripts/bynames.py +++ b/lib/kformula/scripts/bynames.py @@ -109,14 +109,14 @@ def name_cmp( a, b ): def parse( fr, fw ): line = fr.readline() - while line != "" and string.tqfind( line, '<pre>' ) == -1: + while line != "" and string.find( line, '<pre>' ) == -1: line = fr.readline() - pos = string.tqfind( line, '<pre>' ) ### Ad-hoc detection + pos = string.find( line, '<pre>' ) ### Ad-hoc detection if pos == -1: return line = line[pos + len('<pre>'):].strip() ### Ad-hoc detection entries = [] - while line != "" and string.tqfind( line, ',' ) != -1: + while line != "" and string.find( line, ',' ) != -1: fields = line.split(',') name = fields[0].strip() number = fields[1].strip() @@ -124,7 +124,7 @@ def parse( fr, fw ): # TODO: Support multicharacter entities, should also be supported by # application. The best solution would probably to map to a single # character provided by the font in the private area of Unicode - if string.tqfind( number, '-' ) == -1: + if string.find( number, '-' ) == -1: entries.append( [name, '0x' + number[1:]] ) line = fr.readline().strip() |