From 6d580992f67386bd59b677f8ee97d320bf644fb4 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 4 Mar 2019 12:49:04 -0800 Subject: [PATCH] Replace call to deprecated astor.codegen to astor.code_gen PiperOrigin-RevId: 236706540 --- tensorflow/python/autograph/pyct/compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/autograph/pyct/compiler.py b/tensorflow/python/autograph/pyct/compiler.py index 420f3bb2238..9a4a4627355 100644 --- a/tensorflow/python/autograph/pyct/compiler.py +++ b/tensorflow/python/autograph/pyct/compiler.py @@ -46,8 +46,8 @@ def ast_to_source(node, indentation=' '): """ if not isinstance(node, (list, tuple)): node = (node,) - generator = astor.codegen.SourceGenerator(indentation, False, - astor.string_repr.pretty_string) + generator = astor.code_gen.SourceGenerator(indentation, False, + astor.string_repr.pretty_string) for n in node: if isinstance(n, gast.AST):