~amirouche/mutation

dd25e541dfc07fb49b83afa7178994bf84b0ca96 — Amirouche 7 months ago ba9100e
small refactor.
1 files changed, 1 insertions(+), 18 deletions(-)

M mutation.py
M mutation.py => mutation.py +1 -18
@@ 166,24 166,7 @@ def node_iter(node, level=1):
    yield node
    for child in node.children:
        level += 1
        if child.type == "endmarker":
            yield child
            continue
        if child.type == "number":
            yield child
            continue
        if child.type == "string":
            yield child
            continue
        if child.type == "newline":
            continue
        if child.type == "operator":
            yield child
            continue
        if child.type == "keyword":
            yield child
            continue
        if child.type == "name":
        if not getattr(child, "children", False):
            yield child
            continue