From: Mark Huang Date: Tue, 3 Oct 2006 19:31:40 +0000 (+0000) Subject: - no need to filter out None anymore X-Git-Tag: pycurl-7_13_1~667 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=25ce2c624bcd7ff326583e2e767b5b078f15e720;p=plcapi.git - no need to filter out None anymore --- diff --git a/PLC/Methods/GetSlices.py b/PLC/Methods/GetSlices.py index e79fded8..9aa041da 100644 --- a/PLC/Methods/GetSlices.py +++ b/PLC/Methods/GetSlices.py @@ -42,10 +42,4 @@ class GetSlices(Method): can_view = member_of slices = filter(can_view, slices) - # Filter out undesired or None fields (XML-RPC cannot marshal - # None) and turn each slice into a real dict. - valid_return_fields_only = lambda (key, value): value is not None - slices = [dict(filter(valid_return_fields_only, slice.items())) \ - for slice in slices] - return slices