client.gnt_node: Remove unnecessary lambda
authorMichael Hanselmann <hansmi@google.com>
Tue, 14 Dec 2010 15:07:28 +0000 (16:07 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 14 Dec 2010 15:21:29 +0000 (16:21 +0100)
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

index 1819a0d..86d277d 100644 (file)
@@ -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,