aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2013-08-13 20:18:59 +0200
committerMartin Vilcans <martin@librador.com>2013-08-13 20:34:00 +0200
commitef46feaa1e3d9b6c005aa0c90b1165b17dd71164 (patch)
tree0f75414c2c748eee2f1eaa11a7dfe66e72e7a5e7
parente2712e4280aaa57b5843cbe308ed42be6ef73824 (diff)
downloadscreenplain-ef46feaa1e3d9b6c005aa0c90b1165b17dd71164.tar.gz
Use six.next instead of it.next (Py3 compat)
-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 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)