Don't use a tuple in function arguments

This feature was removed in Python 3 to ease introspection.

Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Petr Viktorin 2015-08-10 18:04:09 +02:00 committed by Jan Cholasta
parent f82463d4e2
commit 8fb4013a72

View File

@ -213,7 +213,7 @@ def make_api():
for o in sorted(cmd.output(), key=operator.attrgetter('name')):
fd.write('output: %s\n' % param_repr(o))
for name, version in sorted(
capabilities.items(), key=lambda (k, v): (v, k)):
capabilities.items(), key=operator.itemgetter(1, 0)):
fd.write('capability: %s %s\n' % (name, version))
fd.close()