1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Replace pylint "disable-msg" by "disable", and disable one more msg in setup.

This commit is contained in:
Guillaume Ayoub 2010-06-05 01:18:59 +02:00
parent ab0ee2c301
commit 9b86e6ef27
4 changed files with 19 additions and 16 deletions

View file

@ -35,11 +35,11 @@ FOLDER = os.path.expanduser(config.get("storage", "folder"))
# This function overrides the builtin ``open`` function for this module
# pylint: disable-msg=W0622
# pylint: disable=W0622
def open(path, mode="r"):
"""Open file at ``path`` with ``mode``, automagically managing encoding."""
return codecs.open(path, mode, config.get("encoding", "stock"))
# pylint: enable-msg=W0622
# pylint: enable=W0622
def serialize(headers=(), items=()):
@ -118,9 +118,9 @@ class Event(Item):
class Todo(Item):
"""Internal todo class."""
# This is not a TODO!
# pylint: disable-msg=W0511
# pylint: disable=W0511
tag = "VTODO"
# pylint: enable-msg=W0511
# pylint: enable=W0511
class Timezone(Item):