Add a .pylintrc file, clean code

This commit is contained in:
Guillaume Ayoub
2011-07-14 11:23:19 +02:00
parent 380acebd71
commit 0a84905383
4 changed files with 245 additions and 8 deletions

View File

@ -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 = []