提交 6ad6db4f 编写于 作者: D Dan Moldovan 提交者: TensorFlower Gardener

Explicitly delete the generator variable to make it clearer that it should not...

Explicitly delete the generator variable to make it clearer that it should not be used past that point.

PiperOrigin-RevId: 225423563
上级 9a24e6be
......@@ -72,6 +72,7 @@ def ast_to_source(node, indentation=' '):
# Reference cycles are quite disliked by TensorFlow's tests.
if hasattr(generator, 'write'):
generator.write = None
del generator
return code
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册