From ecd0a162145e0c9ef9b6d082afbcef2769df1608 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 13 Aug 2016 04:48:59 +0200 Subject: [PATCH] Remove unused variable path --- radicale/xmlutils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 4d01ea1..92b3450 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -791,7 +791,6 @@ def report(path, xml_request, collection): name = name_from_path(hreference, collection) if name: # Reference is an item - path = "/".join(hreference.split("/")[:-1]) + "/" item = collection.get(name) if item is None: response = _item_response(hreference, found_item=False) @@ -800,7 +799,6 @@ def report(path, xml_request, collection): items = [item] else: # Reference is a collection - path = hreference items = collection.pre_filtered_list(filters) for item in items: