diff options
author | Georg Brandl <georg@python.org> | 2007-04-21 15:47:16 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-04-21 15:47:16 +0000 |
commit | fb634813509526a134b2449f32a35d3adf08d02d (patch) | |
tree | b8d2035015ea45e3dd6b52d8f1ecabd2b264bc8f /Lib/test/test_tokenize.py | |
parent | 62d08f86da83d841e70f2181a4427df26000a322 (diff) | |
download | cpython-fb634813509526a134b2449f32a35d3adf08d02d.tar.gz |
PEP 3114: rename .next() to .__next__() and add next() builtin.
Diffstat (limited to 'Lib/test/test_tokenize.py')
-rw-r--r-- | Lib/test/test_tokenize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index d6c37775f0..0880f0f503 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -103,7 +103,7 @@ def test_roundtrip(f): t1 = [tok[:2] for tok in fulltok] newtext = untokenize(t1) - readline = iter(newtext.splitlines(1)).next + readline = iter(newtext.splitlines(1)).__next__ t2 = [tok[:2] for tok in generate_tokens(readline)] if t1 != t2: raise TestFailed("untokenize() roundtrip failed for %r" % f) @@ -224,7 +224,7 @@ def test_rarrow(): This function exists solely to test the tokenization of the RARROW operator. - >>> tokenize(iter(['->']).next) #doctest: +NORMALIZE_WHITESPACE + >>> tokenize(iter(['->']).__next__) #doctest: +NORMALIZE_WHITESPACE 1,0-1,2:\tOP\t'->' 2,0-2,0:\tENDMARKER\t'' """ |