diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-04 15:12:29 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-04 15:23:09 +0530 |
commit | 614a3d7a54ee761f7f26a8994d357b0b2fc55834 (patch) | |
tree | 6955ad4a70c3cc2531712f2c594464ea0b8979c1 /test/pathod/test_language_writer.py | |
parent | ae553ef472d63e6b05d87f1ad28c604e0fb67347 (diff) | |
download | mitmproxy-614a3d7a54ee761f7f26a8994d357b0b2fc55834.tar.gz mitmproxy-614a3d7a54ee761f7f26a8994d357b0b2fc55834.tar.bz2 mitmproxy-614a3d7a54ee761f7f26a8994d357b0b2fc55834.zip |
Py3: Use global next() instead of iterator method
Diffstat (limited to 'test/pathod/test_language_writer.py')
-rw-r--r-- | test/pathod/test_language_writer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pathod/test_language_writer.py b/test/pathod/test_language_writer.py index 0a85524f..37e6ba2b 100644 --- a/test/pathod/test_language_writer.py +++ b/test/pathod/test_language_writer.py @@ -77,14 +77,14 @@ def test_write_values_pauses(): def test_write_values_after(): s = StringIO() - r = language.parse_pathod("400:da").next() + r = next(language.parse_pathod("400:da")) language.serve(r, s, {}) s = StringIO() - r = language.parse_pathod("400:pa,0").next() + r = next(language.parse_pathod("400:pa,0")) language.serve(r, s, {}) s = StringIO() - r = language.parse_pathod("400:ia,'xx'").next() + r = next(language.parse_pathod("400:ia,'xx'")) language.serve(r, s, {}) assert s.getvalue().endswith('xx') |