This commit is contained in:
Dave Halter
2014-08-22 00:46:24 +02:00
parent 6ba0b7b81e
commit ed3b507ab7
2 changed files with 18 additions and 29 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ from jedi import debug
def fast_parent_copy(obj, new_elements_default=None):
"""
Much, much faster than copy.deepcopy, but just for certain elements.
Much, much faster than copy.deepcopy, but just for Parser elements (Doesn't
copy parents).
"""
new_elements = new_elements_default or {}
accept = (pr.Simple, pr.NamePart, pr.KeywordStatement)