def pprintAst(ast, indent='  ', stream=sys.stdout):
    "Pretty-print an AST to the given output stream."
    rec_node(ast, 0, indent, stream.write)
Pretty-print an AST to the given output stream.
recipes/Python/533145_AST_Pretty_Printer/recipe-533145.py