diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-26 15:31:02 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-26 15:31:50 +0100 |
commit | 304ff8183674f70b278c177e1aceaa7f6f08d9e2 (patch) | |
tree | 7b6d46356f60666e1065a80c60badd2b713c067e | |
parent | 8d2fc95d175f1778ccac0a9ff84e552abb0ddcc3 (diff) | |
download | calcurse-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>
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 6 |
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 = '' |