From 3d9f3eca675356c2d9bb45cc60b357ca215a34bf Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 7 Sep 2008 23:57:27 +0200 Subject: [PATCH] Disable the few remaining pylint messages --- src/sugar/activity/activity.py | 4 ++-- src/sugar/presence/presenceservice.py | 3 ++- src/sugar/presence/tubeconn.py | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index 6f465886..8264b5fd 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -522,8 +522,8 @@ class Activity(Window, gtk.Container): self.shared_activity = mesh_instance self.shared_activity.connect('notify::private', self.__privacy_changed_cb) - self._join_id = self.shared_activity.connect - ("joined", self.__joined_cb) + self._join_id = self.shared_activity.connect("joined", + self.__joined_cb) if not self.shared_activity.props.joined: self.shared_activity.join() else: diff --git a/src/sugar/presence/presenceservice.py b/src/sugar/presence/presenceservice.py index 50f0f7fd..4b0b3e17 100644 --- a/src/sugar/presence/presenceservice.py +++ b/src/sugar/presence/presenceservice.py @@ -457,7 +457,8 @@ class PresenceService(gobject.GObject): def _share_activity_cb(self, activity, op): """Finish sharing the activity """ - psact = self._new_object(op) + # FIXME find a better way to shutup pylint + psact = (Activity)(self._new_object(op)) psact._joined = True _logger.debug('%r: Just shared, setting up tubes', activity) psact.set_up_tubes(reply_handler=lambda: diff --git a/src/sugar/presence/tubeconn.py b/src/sugar/presence/tubeconn.py index b487391f..c2f67e6c 100644 --- a/src/sugar/presence/tubeconn.py +++ b/src/sugar/presence/tubeconn.py @@ -31,6 +31,8 @@ logger = logging.getLogger('telepathy.tubeconn') class TubeConnection(Connection): + # pylint: disable-msg=W0212 + # Confused by __new__ def __new__(cls, conn, tubes_iface, tube_id, address=None, group_iface=None, mainloop=None): if address is None: @@ -53,6 +55,8 @@ class TubeConnection(Connection): return self + # pylint: disable-msg=W0201 + # Confused by __new__ def _on_get_self_handle_reply(self, handle): self.self_handle = handle match = self._tubes_iface.connect_to_signal('DBusNamesChanged',