mirror of
https://github.com/django/django.git
synced 2025-07-28 07:34:19 +00:00
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:
parent
1c1a229632
commit
169b1a404c
20 changed files with 73 additions and 73 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue