forked from VimPlug/jedi
care for python 3 dict.items iterator return (in python2 list)
This commit is contained in:
@@ -154,7 +154,7 @@ def fast_parent_copy(obj):
|
|||||||
new_elements[obj] = new_obj
|
new_elements[obj] = new_obj
|
||||||
|
|
||||||
try:
|
try:
|
||||||
items = new_obj.__dict__.items()
|
items = list(new_obj.__dict__.items())
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# __dict__ not available, because of __slots__
|
# __dict__ not available, because of __slots__
|
||||||
items = []
|
items = []
|
||||||
|
|||||||
Reference in New Issue
Block a user