aboutsummaryrefslogtreecommitdiffstats
path: root/screenplain/parsers/fountain.py
diff options
context:
space:
mode:
Diffstat (limited to 'screenplain/parsers/fountain.py')
-rw-r--r--screenplain/parsers/fountain.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/screenplain/parsers/fountain.py b/screenplain/parsers/fountain.py
index 3290dd2..5434c1a 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,
@@ -269,7 +270,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:
@@ -278,7 +279,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)