Merge "py3: Replace dict.iteritems() with dict.items()"
This commit is contained in:
commit
171f54bfe7
@ -352,8 +352,8 @@ class TabbedFormRegion(FormRegion):
|
|||||||
self.switch_to_tab(self.tab_index)
|
self.switch_to_tab(self.tab_index)
|
||||||
fields = self.get_fields()
|
fields = self.get_fields()
|
||||||
if isinstance(fields, dict):
|
if isinstance(fields, dict):
|
||||||
return dict([(key, field) for (key, field)
|
return {key: field for (key, field)
|
||||||
in fields.iteritems() if field.is_displayed()])
|
in six.iteritems(fields) if field.is_displayed()}
|
||||||
else:
|
else:
|
||||||
return [field for field in fields if field.is_displayed()]
|
return [field for field in fields if field.is_displayed()]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user