Fixes for Python 2.X compatibility in SourceIterator

This commit is contained in:
Hernan Grecco
2016-01-07 21:55:01 -03:00
parent 9e35ab518e
commit 81f547c56b

View File

@@ -693,6 +693,8 @@ class SourceIterator(object):
self.last = lineno, line
return lineno, line
next = __next__
def block_iter(self):
"""Iterate block including header.
"""
@@ -723,3 +725,5 @@ class BlockIterator(SourceIterator):
raise DefinitionSyntaxError('cannot nest @ directives', lineno=lineno)
return lineno, line
next = __next__