Make sure match_filter() return True or False, not True or None.
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 25 Jan 2016 09:30:19 +0000 (09:30 +0000)
committerGuido Günther <agx@sigxcpu.org>
Tue, 26 Jan 2016 17:30:05 +0000 (18:30 +0100)
This make the return consistenly a boolean, and make printing the
result prettier.

calypso/xmlutils.py

index e94a5e928848c0c925ba8b716e6171787d2c0128..67290b7b1e61f1e8fd0b1068c237f2c82203e464 100644 (file)
@@ -313,6 +313,7 @@ def match_filter(item, filter):
     for fe in filter.getchildren():
         if match_filter_element(item.object, fe):
             return True
+    return False
 
 def report(path, xml_request, collection):
     """Read and answer REPORT requests.