diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 16:46:50 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 16:46:50 +0000 |
| commit | 93b504e6059aca5941951350fe4d3d4279fb650f (patch) | |
| tree | 8725bc34e8aa04a991b048f6aef39072facc7d3b /docutils/test | |
| parent | 756641cdcf070f28389ad9f0ded36d093ee73875 (diff) | |
| download | docutils-93b504e6059aca5941951350fe4d3d4279fb650f.tar.gz | |
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 <stephen@that.guru>
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8361 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
| -rwxr-xr-x | docutils/test/test_parsers/test_rst/test_directives/test_tables.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |
