提交 edb7f7a0 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!330 Fix issue that the python source for an AST is wrong.

Merge pull request !330 from ggpolar/br_wzk_dev
......@@ -297,7 +297,7 @@ class AstEditVisitor(ast.NodeVisitor):
if source_prefix:
pos = len(source_prefix)
source_code = pasta.dump(node)
return source_code[pos]
return source_code[pos:]
def _replace_external_reference(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册