This commit is contained in:
Dave Halter committed 2014-08-22 00:47:08 +02:00
1 parent 6ba0b7b81e
commit ed3b507ab7
2 files changed
+18 -29

No files matched your search

+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)