diff --git a/mindinsight/mindconverter/ast_edits.py b/mindinsight/mindconverter/ast_edits.py index 36de6e7f5eb388ec333a3da01fbf726f71cf8bee..4e2e3e3e79167afacb1790c76fb20ae9e55f4c32 100644 --- a/mindinsight/mindconverter/ast_edits.py +++ b/mindinsight/mindconverter/ast_edits.py @@ -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): """