Implement get_parent_until for Comprehension.

This commit is contained in:
Dave Halter
2015-12-18 23:18:21 +01:00
parent e73b1a683a
commit a2905ae078

View File

@@ -107,6 +107,9 @@ class Comprehension(IterableWrapper):
}
return mapping[atom.children[0]](evaluator, atom)
def get_parent_until(self, *args, **kwargs):
return self._atom.get_parent_until(*args, **kwargs)
def __init__(self, evaluator, atom):
self._evaluator = evaluator
self._atom = atom