From 8f911909496d37ff5c0c65102beeb2b4b4c2e71e Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 1 Aug 2016 20:42:03 +0200 Subject: [PATCH] Remove duplicate code --- radicale/xmlutils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index b57f08d..5991508 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -590,14 +590,11 @@ def _propfind_response(path, item, props, user, write=False): is404 = False if tag == _tag("D", "getetag"): element.text = item.etag - elif tag == _tag("D", "principal-URL"): - tag = ET.Element(_tag("D", "href")) - tag.text = _href(collection, path) - element.append(tag) elif tag == _tag("D", "getlastmodified"): element.text = item.last_modified elif tag in (_tag("D", "principal-collection-set"), _tag("C", "calendar-user-address-set"), + _tag("D", "principal-URL"), _tag("CR", "addressbook-home-set"), _tag("C", "calendar-home-set")): tag = ET.Element(_tag("D", "href"))