Drop access to iteritems

iteritems is the interface which was removed in Python 3.

Change-Id: Ib9fc717910db4207d1b48ae55eb45ced3399368a
This commit is contained in:
Takashi Kajinami
2025-02-25 01:05:58 +09:00
parent 20c3119202
commit b11d1df2ff

View File

@@ -53,8 +53,6 @@ def to_primitive(value):
return o
elif isinstance(value, datetime.datetime):
return str(value)
elif hasattr(value, 'iteritems'):
return to_primitive(dict(value.items()))
elif hasattr(value, '__iter__'):
return to_primitive(list(value))
else: