pylint cleanup: replace disable-msg with disable

Adapt to upstream format change.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
This commit is contained in:
Sascha Silbe 2010-10-15 19:20:26 +00:00
parent 7acfbd070f
commit eacce98f88
3 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ def _close_fds():
for i in xrange(3, MAXFD): for i in xrange(3, MAXFD):
try: try:
os.close(i) os.close(i)
# pylint: disable-msg=W0704 # pylint: disable=W0704
except Exception: except Exception:
pass pass
@ -284,7 +284,7 @@ class ActivityCreationHandler(gobject.GObject):
self._handle.activity_id, self._service_name) self._handle.activity_id, self._service_name)
def _create_error_handler(self, err): def _create_error_handler(self, err):
logging.error('Couldn't create activity %s (%s): %s', logging.error("Couldn't create activity %s (%s): %s",
self._handle.activity_id, self._service_name, err) self._handle.activity_id, self._service_name, err)
self._shell.NotifyLaunchFailure( self._shell.NotifyLaunchFailure(
self._handle.activity_id, reply_handler=self._no_reply_handler, self._handle.activity_id, reply_handler=self._no_reply_handler,

View File

@ -36,7 +36,7 @@ class TubeConnection(Connection):
def __new__(cls, conn, tubes_iface, tube_id, address=None, def __new__(cls, conn, tubes_iface, tube_id, address=None,
group_iface=None, mainloop=None): group_iface=None, mainloop=None):
# pylint: disable-msg=W0212 # pylint: disable=W0212
# Confused by __new__ # Confused by __new__
if address is None: if address is None:
address = tubes_iface.GetDBusTubeAddress(tube_id) address = tubes_iface.GetDBusTubeAddress(tube_id)
@ -59,7 +59,7 @@ class TubeConnection(Connection):
return self return self
def _on_get_self_handle_reply(self, handle): def _on_get_self_handle_reply(self, handle):
# pylint: disable-msg=W0201 # pylint: disable=W0201
# Confused by __new__ # Confused by __new__
self.self_handle = handle self.self_handle = handle
match = self._tubes_iface.connect_to_signal('DBusNamesChanged', match = self._tubes_iface.connect_to_signal('DBusNamesChanged',

View File

@ -133,7 +133,7 @@ class LRU:
""" """
def __init__(self, count, pairs=[]): def __init__(self, count, pairs=[]):
# pylint: disable-msg=W0102,W0612 # pylint: disable=W0102,W0612
self.count = max(count, 1) self.count = max(count, 1)
self.d = {} self.d = {}
self.first = None self.first = None