From cf953c9d02981530e93876770547d71a88e38d72 Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 4 Sep 2012 18:22:11 +0200 Subject: [PATCH] python 2.5 compatibility, use for loop, not the next function --- test/completion/std.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/completion/std.py b/test/completion/std.py index 409dafb4..46331789 100644 --- a/test/completion/std.py +++ b/test/completion/std.py @@ -13,8 +13,9 @@ c.match().start() #? int() re.match(r'a', 'a').start() -#? int() -next(re.finditer('a', 'a')).start() +for a in re.finditer('a', 'a'): + #? int() + a.start() #? str() re.sub('a', 'a')