Use " instead of ' (you can laugh at me)

This commit is contained in:
Guillaume Ayoub
2012-03-01 10:40:15 +01:00
parent 36918232c0
commit 7bfc17a51d
6 changed files with 24 additions and 25 deletions

View File

@ -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):