From bb23ef468d71a6523a9ae231b6fa6e7b7e515ee3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Mon, 10 Apr 2006 15:50:31 +0000 Subject: [PATCH] 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 --- lib/lyx2lyx/parser_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/parser_tools.py b/lib/lyx2lyx/parser_tools.py index d857e2287c..a4af43fec5 100644 --- a/lib/lyx2lyx/parser_tools.py +++ b/lib/lyx2lyx/parser_tools.py @@ -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) -- 2.39.5