From b230601ee2004343f59cddfa7667b08930882670 Mon Sep 17 00:00:00 2001 From: Lukasz Langa Date: Tue, 24 May 2011 15:09:37 +0200 Subject: [PATCH] elementtree in Python 2.x would rather receive encoded strings. --- radicale/xmlutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 095a622..82f9d7d 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -119,7 +119,7 @@ def propfind(path, xml_request, calendar, depth): """ # Reading request - root = ET.fromstring(xml_request) + root = ET.fromstring(xml_request.encode("utf8")) prop_element = root.find(_tag("D", "prop")) props = [prop.tag for prop in prop_element] @@ -220,7 +220,7 @@ def proppatch(path, xml_request, calendar): """ # Reading request - root = ET.fromstring(xml_request) + root = ET.fromstring(xml_request.encode("utf8")) props = [] for action in ("set", "remove"): @@ -274,7 +274,7 @@ def report(path, xml_request, calendar): """ # Reading request - root = ET.fromstring(xml_request) + root = ET.fromstring(xml_request.encode("utf8")) prop_element = root.find(_tag("D", "prop")) props = [prop.tag for prop in prop_element]