Add a .pylintrc file, clean code
This commit is contained in:
@@ -202,7 +202,8 @@ def _propfind_response(path, item, props, user):
|
||||
response = ET.Element(_tag("D", "response"))
|
||||
|
||||
href = ET.Element(_tag("D", "href"))
|
||||
href.text = (item.url if is_calendar else "%s/%s" % (path, item.name)).replace('//', '/')
|
||||
uri = item.url if is_calendar else "%s/%s" % (path, item.name)
|
||||
href.text = uri.replace("//", "/")
|
||||
response.append(href)
|
||||
|
||||
propstat404 = ET.Element(_tag("D", "propstat"))
|
||||
|
||||
Reference in New Issue
Block a user