1
0
forked from VimPlug/jedi

Fix issues caused by KeywordStatement, which needs to be copied as well.

This commit is contained in:
Dave Halter
2014-08-21 16:51:00 +02:00
parent 0ef030848d
commit 039a5ecaf9
2 changed files with 5 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ def fast_parent_copy(obj, new_elements_default=None):
Much, much faster than copy.deepcopy, but just for certain elements.
"""
new_elements = new_elements_default or {}
accept = (pr.Simple, pr.NamePart)
accept = (pr.Simple, pr.NamePart, pr.KeywordStatement)
def recursion(obj):
if isinstance(obj, pr.Statement):