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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user