1
0
forked from VimPlug/jedi

simple function tests pass now

This commit is contained in:
David Halter
2013-02-09 03:55:30 +01:00
parent a1e366f791
commit 22a1b2397d
4 changed files with 19 additions and 20 deletions

View File

@@ -31,8 +31,7 @@ def fast_parent_copy(obj):
for key, value in items:
# replace parent (first try _parent and then parent)
if key in ['parent', '_parent', '_parent_stmt'] \
and value is not None:
if key in ['parent', '_parent'] and value is not None:
if key == 'parent' and '_parent' in items:
# parent can be a property
continue
@@ -40,8 +39,7 @@ def fast_parent_copy(obj):
setattr(new_obj, key, new_elements[value])
except KeyError:
pass
elif key in ['parent_stmt', 'parent_function', 'use_as_parent',
'module']:
elif key in ['parent_function', 'use_as_parent', 'module']:
continue
elif isinstance(value, list):
setattr(new_obj, key, list_rec(value))