From: José Matox Date: Mon, 10 Apr 2006 15:50:31 +0000 (+0000) Subject: parser_tools.py (find_tokens, find_tokens_exact): replace range with xrange. X-Git-Tag: 1.6.10~13364 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bb23ef468d71a6523a9ae231b6fa6e7b7e515ee3;p=features.git 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 --- 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)