def set_filename(filename, tree):
    worklist = [tree]
    while worklist:
        node = worklist.pop(0)
        node.filename = filename
        worklist.extend(node.getChildNodes())
Set the filename attribute to filename on every node in tree
dataset/ETHPy150Open anandology/pyjamas/pgen/lib2to3/compiler/misc.py/set_filename