From 10bac1a73ad5db3917bcdb5f7388dca19e35b2fd Mon Sep 17 00:00:00 2001 From: qinchunhua Date: Fri, 22 Jul 2016 23:52:08 -0400 Subject: [PATCH] Python 3: dict.iteritems() Replace dict.iteritems() with dict.items(). The Python 3 dict type has no iteritems() method, the old iteritems() method was renamed to items(). Change-Id: I16c3dc5d56c074097d7cdda6635796cdc9d851e3 --- devstack/networking_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 devstack/networking_test.py diff --git a/devstack/networking_test.py b/devstack/networking_test.py old mode 100755 new mode 100644 index 49ef76fb7..f5ef17596 --- a/devstack/networking_test.py +++ b/devstack/networking_test.py @@ -236,7 +236,7 @@ COMMIT COMMIT """ marks = dict((k, "0x%d/0xffffffff" % v) - for k, v in self.protocol_marks.iteritems()) + for k, v in self.protocol_marks.items()) ipt_conf = ipt_conf % marks self._apply_iptables_conf(ipt_conf)