replace dict.iteritems() with six.iteritems(dict)

According to https://wiki.openstack.org/wiki/Python3 dict.iteritems()
should be replaced with six.iteritems(dict).

Change-Id: I52cc0e89c030d7b6bfc735239638b513410933c5
This commit is contained in:
Christian Berendt
2014-05-26 18:07:32 +02:00
parent 09ad1ed7a3
commit da47380ae7

View File

@@ -204,7 +204,7 @@ def _display_rule(type, rule):
else:
# just dump all
return "\n".join(["%s: %s" % (f, v)
for f, v in rule.iteritems()])
for f, v in six.iteritems(rule)])
def alarm_rule_formatter(alarm):