From 67669bd69050214fcee6ae6f6f53ad9c81be7d65 Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 16 Jun 2017 23:11:29 +0200 Subject: [PATCH] Rename path to sane_path --- radicale/storage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index b178fd8..6310483 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -660,8 +660,8 @@ class Collection(BaseCollection): else: href = None - path = "/".join(attributes) - collection = cls(path) + sane_path = "/".join(attributes) + collection = cls(sane_path) if href: yield collection.get(href) @@ -679,9 +679,9 @@ class Collection(BaseCollection): if not is_safe_filesystem_path_component(href): if not href.startswith(".Radicale"): cls.logger.debug("Skipping collection %r in %r", href, - path) + sane_path) continue - child_path = posixpath.join(path, href) + child_path = posixpath.join(sane_path, href) yield cls(child_path) @classmethod