From b6b48b5af7885183be9ac631d3b39ec178111cb2 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 27 Feb 2013 10:36:54 +0100 Subject: [PATCH] Typo --- radicale/xmlutils.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index e140a27..7896a54 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -197,16 +197,14 @@ def propfind(path, xml_request, collections, user=None): # Reading request if xml_request: root = ET.fromstring(xml_request.encode("utf8")) - - prop_element = root.find(_tag("D", "prop")) - props = [prop.tag for prop in prop_element] + props = [prop.tag for prop in root.find(_tag("D", "prop"))] else: - props = [ _tag("D", "getcontenttype"), - _tag("D", "resourcetype"), - _tag("D", "displayname"), - _tag("D", "owner"), - _tag("D", "getetag"), - _tag("CS", "getctag") ] + props = [_tag("D", "getcontenttype"), + _tag("D", "resourcetype"), + _tag("D", "displayname"), + _tag("D", "owner"), + _tag("D", "getetag"), + _tag("CS", "getctag")] # Writing answer multistatus = ET.Element(_tag("D", "multistatus"))