Skip to content

Commit 424649d

Browse files
committed
python 2 compatibility
1 parent e4e2ebc commit 424649d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_restplus/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def _flatten(self, obj):
736736
if obj == self._obj and self._flat is not None:
737737
return self._flat
738738
if isinstance(obj, dict):
739-
self._flat = [x for x in obj.items()]
739+
self._flat = [x for x in iteritems(obj)]
740740
else:
741741

742742
def __match_attributes(attribute):

0 commit comments

Comments
 (0)