Replace call to deprecated astor.codegen to astor.code_gen
PiperOrigin-RevId: 236706540
This commit is contained in:
parent
29c4c0f9ae
commit
6d580992f6
@ -46,7 +46,7 @@ def ast_to_source(node, indentation=' '):
|
|||||||
"""
|
"""
|
||||||
if not isinstance(node, (list, tuple)):
|
if not isinstance(node, (list, tuple)):
|
||||||
node = (node,)
|
node = (node,)
|
||||||
generator = astor.codegen.SourceGenerator(indentation, False,
|
generator = astor.code_gen.SourceGenerator(indentation, False,
|
||||||
astor.string_repr.pretty_string)
|
astor.string_repr.pretty_string)
|
||||||
|
|
||||||
for n in node:
|
for n in node:
|
||||||
|
Loading…
Reference in New Issue
Block a user