parser_tools.py (find_tokens, find_tokens_exact): replace range with xrange.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13625 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2006-04-10 15:50:31 +00:00
parent e6c2e24dc8
commit bb23ef468d

View File

@ -53,7 +53,7 @@ def find_token_exact(lines, token, start, end = 0):
def find_tokens(lines, tokens, start, end = 0):
if end == 0:
end = len(lines)
for i in range(start, end):
for i in xrange(start, end):
for token in tokens:
if lines[i][:len(token)] == token:
return i
@ -63,7 +63,7 @@ def find_tokens(lines, tokens, start, end = 0):
def find_tokens_exact(lines, tokens, start, end = 0):
if end == 0:
end = len(lines)
for i in range(start, end):
for i in xrange(start, end):
for token in tokens:
x = string.split(lines[i])
y = string.split(token)