From a36f605d07be0cea0bacc68dad9db3f4c7ed8bf4 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 14 Dec 2010 16:07:28 +0100 Subject: [PATCH] client.gnt_node: Remove unnecessary lambda MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pylint complained that the βlambda may not be necessaryβ. Turns out it was right. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- lib/client/gnt_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/gnt_node.py b/lib/client/gnt_node.py index 1819a0de7..86d277db7 100644 --- a/lib/client/gnt_node.py +++ b/lib/client/gnt_node.py @@ -211,7 +211,7 @@ def ListNodes(opts, args): selected_fields = ParseFields(opts.output, _LIST_DEF_FIELDS) fmtoverride = dict.fromkeys(["pinst_list", "sinst_list", "tags"], - (lambda value: ",".join(value), False)) + (",".join, False)) return GenericList(constants.QR_NODE, selected_fields, args, opts.units, opts.separator, not opts.no_headers, -- GitLab