From a2d01de34300c5a2aeeb07ef36a960fdedcd4565 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 13 Mar 2017 20:14:04 -0700 Subject: [PATCH] =?UTF-8?q?A=20few=20more=20iteritems=20=E2=80=94>=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etg/propgridiface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etg/propgridiface.py b/etg/propgridiface.py index 0b4b824d..306f6b7d 100644 --- a/etg/propgridiface.py +++ b/etg/propgridiface.py @@ -244,7 +244,7 @@ def run(): attr_dicts = [] def set_sub_obj(k0, dict_): - for k,v in dict_.iteritems(): + for k,v in dict_.items(): if k[0] != '_': if k.endswith('@attr'): attr_dicts.append((k[1:-5],v)) @@ -263,10 +263,10 @@ def run(): set_sub_obj(k,v.__dict__) for k,v in attr_dicts: - p = GetPropertyByName(k) + p = self.GetPropertyByName(k) if not p: raise AssertionError("No such property: '%s'"%k) - for an,av in v.iteritems(): + for an,av in v.items(): p.SetAttribute(an, av) @@ -291,7 +291,7 @@ def run(): c.addPyMethod('_AutoFillMany', '(self,cat,dict_)', body="""\ - for k,v in dict_.iteritems(): + for k,v in dict_.items(): self._AutoFillOne(cat,k,v) """)