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>
This commit is contained in:
Lukas Fleischer 2016-01-26 15:31:02 +01:00
parent 8d2fc95d17
commit 304ff81836

View File

@ -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 = ''