summaryrefslogtreecommitdiff
path: root/bases.py
diff options
context:
space:
mode:
Diffstat (limited to 'bases.py')
-rw-r--r--bases.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bases.py b/bases.py
index 91ea91bf..f1f4cc4b 100644
--- a/bases.py
+++ b/bases.py
@@ -578,7 +578,7 @@ class NodeNG(object):
_node = self
try:
while line is None:
- _node = _node.get_children().next()
+ _node = next(_node.get_children())
line = _node.lineno
except StopIteration:
_node = self.parent