diff --git a/radicale/__init__.py b/radicale/__init__.py index b842b6a..ebcfe16 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -90,6 +90,7 @@ class HTTPServer(server.HTTPServer): class HTTPSServer(HTTPServer): """HTTPS server.""" PROTOCOL = "https" + def __init__(self, address, handler): """Create server by wrapping HTTP socket in an SSL socket.""" # Fails with Python 2.5, import if needed diff --git a/radicale/acl/htpasswd.py b/radicale/acl/htpasswd.py index bb2f26b..f641351 100644 --- a/radicale/acl/htpasswd.py +++ b/radicale/acl/htpasswd.py @@ -49,7 +49,7 @@ def _sha1(hash_value, password): """Check if ``hash_value`` and ``password`` match using sha1 method.""" hash_value = hash_value.replace("{SHA}", "").encode("ascii") password = password.encode(config.get("encoding", "stock")) - sha1 = hashlib.sha1() + sha1 = hashlib.sha1() # pylint: disable=E1101 sha1.update(password) return sha1.digest() == base64.b64decode(hash_value) diff --git a/radicale/config.py b/radicale/config.py index 1cf9dd6..8c37280 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -25,8 +25,6 @@ Give a configparser-like interface to read and write configuration. """ -# TODO: Use abstract filenames for other platforms - import os import sys # Manage Python2/3 different modules diff --git a/radicale/ical.py b/radicale/ical.py index cff038f..b156741 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -135,7 +135,6 @@ class Calendar(object): def __init__(self, path): """Initialize the calendar with ``cal`` and ``user`` parameters.""" - # TODO: Use properties from the calendar configuration self.encoding = "utf-8" self.owner = path.split("/")[0] self.path = os.path.join(FOLDER, path.replace("/", os.path.sep)) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 11cb175..d300e0e 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -150,7 +150,7 @@ def propfind(path, xml_request, calendar, depth): element.append(tag) elif tag == _tag("C", "supported-calendar-component-set"): comp = ET.Element(_tag("C", "comp")) - comp.set("name", "VTODO") + comp.set("name", "VTODO") # pylint: disable=W0511 element.append(comp) comp = ET.Element(_tag("C", "comp")) comp.set("name", "VEVENT")