py3: secrets: remove iteritems usage

https://pagure.io/freeipa/issue/4985

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Basti 2017-06-21 18:54:31 +02:00
parent 0537ab07ba
commit b0e5168841

View File

@ -40,6 +40,6 @@ class iSecLdap(object):
def build_filter(self, formatstr, args):
escaped_args = dict()
for key, value in args.iteritems():
for key, value in args.items():
escaped_args[key] = ldap.filter.escape_filter_chars(value)
return formatstr.format(**escaped_args)