From 7731671c705221a616351ab62ef36332f1087d8d Mon Sep 17 00:00:00 2001 From: Javeme Date: Mon, 21 Dec 2015 17:06:11 +0800 Subject: [PATCH] py3: Replace dict.iteritems() with dict.items() Change-Id: I96472f40b933c23baaab599011596285db4332e4 Partial-Implements: blueprint porting-python3 --- openstack_dashboard/test/integration_tests/regions/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/test/integration_tests/regions/forms.py b/openstack_dashboard/test/integration_tests/regions/forms.py index 6dd71194fc..a40942d859 100644 --- a/openstack_dashboard/test/integration_tests/regions/forms.py +++ b/openstack_dashboard/test/integration_tests/regions/forms.py @@ -352,8 +352,8 @@ class TabbedFormRegion(FormRegion): self.switch_to_tab(self.tab_index) fields = self.get_fields() if isinstance(fields, dict): - return dict([(key, field) for (key, field) - in fields.iteritems() if field.is_displayed()]) + return {key: field for (key, field) + in six.iteritems(fields) if field.is_displayed()} else: return [field for field in fields if field.is_displayed()]