diff --git a/scripts/python/md-split.py b/scripts/python/md-split.py index a1ba1aa..f2d2885 100755 --- a/scripts/python/md-split.py +++ b/scripts/python/md-split.py @@ -114,7 +114,7 @@ def process_code(read_filehandle, text_filehandle, line, linenum, sourcefile, co has_question_marks = True linebuffer.append(dedent(line, indent_depth) if not fenced else line) try: - line = read_filehandle.next() + line = read_filehandle.readline() linenum += 1 except StopIteration: line = ''