mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Use " instead of ' (you can laugh at me)
This commit is contained in:
parent
36918232c0
commit
7bfc17a51d
6 changed files with 24 additions and 25 deletions
|
@ -177,7 +177,7 @@ class Collection(object):
|
|||
"""
|
||||
self.encoding = "utf-8"
|
||||
split_path = path.split("/")
|
||||
self.path = path if path != '.' else ''
|
||||
self.path = path if path != "." else ""
|
||||
if principal and split_path and self.is_node(self.path):
|
||||
# Already existing principal collection
|
||||
self.owner = split_path[0]
|
||||
|
@ -428,8 +428,7 @@ class Collection(object):
|
|||
def name(self):
|
||||
"""Collection name."""
|
||||
with self.props as props:
|
||||
return props.get('D:displayname',
|
||||
self.path.split(os.path.sep)[-1])
|
||||
return props.get("D:displayname", self.path.split(os.path.sep)[-1])
|
||||
|
||||
@property
|
||||
def headers(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue