summaryrefslogtreecommitdiff
path: root/contrib/caldav
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-26 15:31:02 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-26 15:31:50 +0100
commit304ff8183674f70b278c177e1aceaa7f6f08d9e2 (patch)
tree7b6d46356f60666e1065a80c60badd2b713c067e /contrib/caldav
parent8d2fc95d175f1778ccac0a9ff84e552abb0ddcc3 (diff)
downloadcalcurse-304ff8183674f70b278c177e1aceaa7f6f08d9e2.zip
calcurse-caldav: Fix property filter
Fix a TypeError that occurred during string formatting by putting parentheses around the multi-line string. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 3bea80b..9b6d77e 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -120,9 +120,9 @@ def remote_query(cmd, path, additional_headers, body):
def get_hrefmap(conn, uid=None):
if uid:
- propfilter = '<C:prop-filter name="UID">' +\
- '<C:text-match collation="i;octet" >%s</C:text-match>' +\
- '</C:prop-filter>' % (uid)
+ propfilter = ('<C:prop-filter name="UID">' +
+ '<C:text-match collation="i;octet" >%s</C:text-match>' +
+ '</C:prop-filter>') % (uid)
else:
propfilter = ''