From 8fb4013a728bacfdf4dc4bd305db69e1c7fcc026 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 10 Aug 2015 18:04:09 +0200 Subject: [PATCH] Don't use a tuple in function arguments This feature was removed in Python 3 to ease introspection. Reviewed-By: Christian Heimes Reviewed-By: Jan Cholasta --- makeapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makeapi b/makeapi index 0f3124455..359d671f2 100755 --- a/makeapi +++ b/makeapi @@ -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()