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
This commit is contained in:
qinchunhua 2016-07-22 23:52:08 -04:00
parent fe306f8cb1
commit 10bac1a73a

2
devstack/networking_test.py Executable file → Normal file
View File

@ -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)