1
0
forked from VimPlug/jedi

care for python 3 dict.items iterator return (in python2 list)

This commit is contained in:
David Halter
2013-01-10 10:02:21 +01:00
parent 21ee6f400d
commit cf22a08d0a

View File

@@ -154,7 +154,7 @@ def fast_parent_copy(obj):
new_elements[obj] = new_obj
try:
items = new_obj.__dict__.items()
items = list(new_obj.__dict__.items())
except AttributeError:
# __dict__ not available, because of __slots__
items = []