Replaced foo.next() by next(foo).

This new syntax for next() has been introduced in Python 2.6 and is
compatible with Python 3.
This commit is contained in:
Claude Paroz 2012-05-10 20:14:04 +02:00
parent 1c1a229632
commit 169b1a404c
20 changed files with 73 additions and 73 deletions

View file

@ -1082,7 +1082,7 @@ def empty_iter():
"""
Returns an iterator containing no results.
"""
yield iter([]).next()
yield next(iter([]))
def order_modified_iter(cursor, trim, sentinel):