From 93b504e6059aca5941951350fe4d3d4279fb650f Mon Sep 17 00:00:00 2001 From: milde Date: Mon, 26 Aug 2019 16:46:50 +0000 Subject: py3: Replace 'foo.next()' with 'next(foo)' The former only works in Python 2, while the latter works in Python 2.7 and 3.x. Signed-off-by: Stephen Finucane git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8361 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/test/test_parsers/test_rst/test_directives/test_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docutils/test') diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py index 26f5b3550..41e0b4359 100755 --- a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py +++ b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py @@ -59,7 +59,7 @@ def null_bytes(): csv_data = unicode(csv_data, 'latin1').splitlines() reader = csv.reader([tables.CSVTable.encode_for_csv(line + '\n') for line in csv_data]) - reader.next() + next(reader) null_bytes_exception = DocutilsTestSupport.exception_data(null_bytes)[0] -- cgit v1.2.1