diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-08-10 18:04:09 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-01 11:38:56 +0200 |
commit | 8fb4013a728bacfdf4dc4bd305db69e1c7fcc026 (patch) | |
tree | c817aef52bad706459f115721ee3ac7598bd477a | |
parent | f82463d4e2bf7c652db942608352ab2ce23ec69b (diff) | |
download | freeipa-8fb4013a728bacfdf4dc4bd305db69e1c7fcc026.tar.gz freeipa-8fb4013a728bacfdf4dc4bd305db69e1c7fcc026.tar.xz freeipa-8fb4013a728bacfdf4dc4bd305db69e1c7fcc026.zip |
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>
-rwxr-xr-x | makeapi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |