mirror of
https://github.com/django/django.git
synced 2025-09-22 10:12:43 +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
|
@ -26,7 +26,7 @@ def wrap(text, width):
|
|||
text = force_unicode(text)
|
||||
def _generator():
|
||||
it = iter(text.split(' '))
|
||||
word = it.next()
|
||||
word = next(it)
|
||||
yield word
|
||||
pos = len(word) - word.rfind('\n') - 1
|
||||
for word in it:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue