From 25ce2c624bcd7ff326583e2e767b5b078f15e720 Mon Sep 17 00:00:00 2001 From: Mark Huang <mlhuang@cs.princeton.edu> Date: Tue, 3 Oct 2006 19:31:40 +0000 Subject: [PATCH] - no need to filter out None anymore --- PLC/Methods/GetSlices.py | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.47.0