git.samba.org
/
jelmer
/
calypso.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37acc9
)
Make sure match_filter() return True or False, not True or None.
author
Petter Reinholdtsen
<pere@hungry.com>
Mon, 25 Jan 2016 09:30:19 +0000
(09:30 +0000)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/calypso/xmlutils.py
b/calypso/xmlutils.py
index e94a5e928848c0c925ba8b716e6171787d2c0128..67290b7b1e61f1e8fd0b1068c237f2c82203e464 100644
(file)
--- a/
calypso/xmlutils.py
+++ b/
calypso/xmlutils.py
@@
-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.