- no need to filter out None anymore
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 3 Oct 2006 19:31:40 +0000 (19:31 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 3 Oct 2006 19:31:40 +0000 (19:31 +0000)
PLC/Methods/GetSlices.py

index e79fded..9aa041d 100644 (file)
@@ -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