mirror of
https://github.com/django/django.git
synced 2025-11-18 02:56:45 +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
|
|
@ -281,7 +281,7 @@ class HttpResponseTests(unittest.TestCase):
|
|||
my_iter = r.__iter__()
|
||||
while True:
|
||||
try:
|
||||
result.append(my_iter.next())
|
||||
result.append(next(my_iter))
|
||||
except StopIteration:
|
||||
break
|
||||
#'\xde\x9e' == unichr(1950).encode('utf-8')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue