mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 12:22:35 +08:00
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
|
||||
|
||||
try:
|
||||
items = new_obj.__dict__.items()
|
||||
items = list(new_obj.__dict__.items())
|
||||
except AttributeError:
|
||||
# __dict__ not available, because of __slots__
|
||||
items = []
|
||||
|
||||
Reference in new issue
Block a user