From ef46feaa1e3d9b6c005aa0c90b1165b17dd71164 Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Tue, 13 Aug 2013 20:18:59 +0200 Subject: Use six.next instead of it.next (Py3 compat) --- screenplain/parsers/fountain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/screenplain/parsers/fountain.py b/screenplain/parsers/fountain.py index df3d147..19deda3 100644 --- a/screenplain/parsers/fountain.py +++ b/screenplain/parsers/fountain.py @@ -5,6 +5,7 @@ import itertools from itertools import takewhile import re +from six import next from screenplain.types import ( Slug, Action, Dialog, DualDialog, Transition, Section, PageBreak @@ -249,7 +250,7 @@ def parse_title_page(lines): it = iter(lines) try: - line = it.next() + line = next(it) while True: key_match = title_page_key_re.match(line) if not key_match: @@ -258,7 +259,7 @@ def parse_title_page(lines): if value: # Single line key/value result.setdefault(key, []).append(value) - line = it.next() + line = next(it) else: for line in it: value_match = title_page_value_re.match(line) -- cgit