care for python 3 dict.items iterator return (in python2 list)
This commit is contained in:
1 parent
21ee6f400d
commit
cf22a08d0a
1 file changed
+1
-1
+1
-1
@@ -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