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:
parent
fe306f8cb1
commit
10bac1a73a
2
devstack/networking_test.py
Executable file → Normal file
2
devstack/networking_test.py
Executable file → Normal file
@ -236,7 +236,7 @@ COMMIT
|
|||||||
COMMIT
|
COMMIT
|
||||||
"""
|
"""
|
||||||
marks = dict((k, "0x%d/0xffffffff" % v)
|
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
|
ipt_conf = ipt_conf % marks
|
||||||
self._apply_iptables_conf(ipt_conf)
|
self._apply_iptables_conf(ipt_conf)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user