mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Add a .pylintrc file, clean code
This commit is contained in:
parent
380acebd71
commit
0a84905383
4 changed files with 245 additions and 8 deletions
|
@ -195,7 +195,8 @@ class Calendar(object):
|
|||
attributes = posixpath.normpath(path).strip("/").split("/")
|
||||
if not attributes:
|
||||
return None
|
||||
if not (os.path.isfile(os.path.join(FOLDER, *attributes)) or path.endswith("/")):
|
||||
if not (os.path.isfile(os.path.join(FOLDER, *attributes)) or
|
||||
path.endswith("/")):
|
||||
attributes.pop()
|
||||
|
||||
result = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue