mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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:
parent
f82463d4e2
commit
8fb4013a72
2
makeapi
2
makeapi
@ -213,7 +213,7 @@ def make_api():
|
|||||||
for o in sorted(cmd.output(), key=operator.attrgetter('name')):
|
for o in sorted(cmd.output(), key=operator.attrgetter('name')):
|
||||||
fd.write('output: %s\n' % param_repr(o))
|
fd.write('output: %s\n' % param_repr(o))
|
||||||
for name, version in sorted(
|
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.write('capability: %s %s\n' % (name, version))
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user