Disable the few remaining pylint messages
This commit is contained in:
parent
b307237dbf
commit
3d9f3eca67
@ -522,8 +522,8 @@ class Activity(Window, gtk.Container):
|
|||||||
self.shared_activity = mesh_instance
|
self.shared_activity = mesh_instance
|
||||||
self.shared_activity.connect('notify::private',
|
self.shared_activity.connect('notify::private',
|
||||||
self.__privacy_changed_cb)
|
self.__privacy_changed_cb)
|
||||||
self._join_id = self.shared_activity.connect
|
self._join_id = self.shared_activity.connect("joined",
|
||||||
("joined", self.__joined_cb)
|
self.__joined_cb)
|
||||||
if not self.shared_activity.props.joined:
|
if not self.shared_activity.props.joined:
|
||||||
self.shared_activity.join()
|
self.shared_activity.join()
|
||||||
else:
|
else:
|
||||||
|
@ -457,7 +457,8 @@ class PresenceService(gobject.GObject):
|
|||||||
def _share_activity_cb(self, activity, op):
|
def _share_activity_cb(self, activity, op):
|
||||||
"""Finish sharing the activity
|
"""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
|
psact._joined = True
|
||||||
_logger.debug('%r: Just shared, setting up tubes', activity)
|
_logger.debug('%r: Just shared, setting up tubes', activity)
|
||||||
psact.set_up_tubes(reply_handler=lambda:
|
psact.set_up_tubes(reply_handler=lambda:
|
||||||
|
@ -31,6 +31,8 @@ logger = logging.getLogger('telepathy.tubeconn')
|
|||||||
|
|
||||||
class TubeConnection(Connection):
|
class TubeConnection(Connection):
|
||||||
|
|
||||||
|
# pylint: disable-msg=W0212
|
||||||
|
# Confused by __new__
|
||||||
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):
|
||||||
if address is None:
|
if address is None:
|
||||||
@ -53,6 +55,8 @@ class TubeConnection(Connection):
|
|||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
# pylint: disable-msg=W0201
|
||||||
|
# Confused by __new__
|
||||||
def _on_get_self_handle_reply(self, handle):
|
def _on_get_self_handle_reply(self, handle):
|
||||||
self.self_handle = handle
|
self.self_handle = handle
|
||||||
match = self._tubes_iface.connect_to_signal('DBusNamesChanged',
|
match = self._tubes_iface.connect_to_signal('DBusNamesChanged',
|
||||||
|
Loading…
Reference in New Issue
Block a user