Pylint, remove fixed todos
This commit is contained in:
		| @@ -90,6 +90,7 @@ class HTTPServer(server.HTTPServer): | |||||||
| class HTTPSServer(HTTPServer): | class HTTPSServer(HTTPServer): | ||||||
|     """HTTPS server.""" |     """HTTPS server.""" | ||||||
|     PROTOCOL = "https" |     PROTOCOL = "https" | ||||||
|  |  | ||||||
|     def __init__(self, address, handler): |     def __init__(self, address, handler): | ||||||
|         """Create server by wrapping HTTP socket in an SSL socket.""" |         """Create server by wrapping HTTP socket in an SSL socket.""" | ||||||
|         # Fails with Python 2.5, import if needed |         # Fails with Python 2.5, import if needed | ||||||
|   | |||||||
| @@ -49,7 +49,7 @@ def _sha1(hash_value, password): | |||||||
|     """Check if ``hash_value`` and ``password`` match using sha1 method.""" |     """Check if ``hash_value`` and ``password`` match using sha1 method.""" | ||||||
|     hash_value = hash_value.replace("{SHA}", "").encode("ascii") |     hash_value = hash_value.replace("{SHA}", "").encode("ascii") | ||||||
|     password = password.encode(config.get("encoding", "stock")) |     password = password.encode(config.get("encoding", "stock")) | ||||||
|     sha1 = hashlib.sha1() |     sha1 = hashlib.sha1() # pylint: disable=E1101 | ||||||
|     sha1.update(password) |     sha1.update(password) | ||||||
|     return sha1.digest() == base64.b64decode(hash_value) |     return sha1.digest() == base64.b64decode(hash_value) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -25,8 +25,6 @@ Give a configparser-like interface to read and write configuration. | |||||||
|  |  | ||||||
| """ | """ | ||||||
|  |  | ||||||
| # TODO: Use abstract filenames for other platforms |  | ||||||
|  |  | ||||||
| import os | import os | ||||||
| import sys | import sys | ||||||
| # Manage Python2/3 different modules | # Manage Python2/3 different modules | ||||||
|   | |||||||
| @@ -135,7 +135,6 @@ class Calendar(object): | |||||||
|  |  | ||||||
|     def __init__(self, path): |     def __init__(self, path): | ||||||
|         """Initialize the calendar with ``cal`` and ``user`` parameters.""" |         """Initialize the calendar with ``cal`` and ``user`` parameters.""" | ||||||
|         # TODO: Use properties from the calendar configuration |  | ||||||
|         self.encoding = "utf-8" |         self.encoding = "utf-8" | ||||||
|         self.owner = path.split("/")[0] |         self.owner = path.split("/")[0] | ||||||
|         self.path = os.path.join(FOLDER, path.replace("/", os.path.sep)) |         self.path = os.path.join(FOLDER, path.replace("/", os.path.sep)) | ||||||
|   | |||||||
| @@ -150,7 +150,7 @@ def propfind(path, xml_request, calendar, depth): | |||||||
|                 element.append(tag) |                 element.append(tag) | ||||||
|             elif tag == _tag("C", "supported-calendar-component-set"): |             elif tag == _tag("C", "supported-calendar-component-set"): | ||||||
|                 comp = ET.Element(_tag("C", "comp")) |                 comp = ET.Element(_tag("C", "comp")) | ||||||
|                 comp.set("name", "VTODO") |                 comp.set("name", "VTODO") # pylint: disable=W0511 | ||||||
|                 element.append(comp) |                 element.append(comp) | ||||||
|                 comp = ET.Element(_tag("C", "comp")) |                 comp = ET.Element(_tag("C", "comp")) | ||||||
|                 comp.set("name", "VEVENT") |                 comp.set("name", "VEVENT") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Guillaume Ayoub
					Guillaume Ayoub