[Sugar-devel] [PATCH sugar-base 16/17] pylint cleanup: Signal._live_receivers: mark receiverkey as unused

Sascha Silbe sascha-pgp at silbe.org
Sat Oct 16 07:30:29 EDT 2010

Follow the convention of marking known-unused (but required for
de-marshalling purposes) variables by postfixing them with an underscore.

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>

diff --git a/src/sugar/dispatch/dispatcher.py b/src/sugar/dispatch/dispatcher.py
index eb2dd7e..dd6230b 100644
--- a/src/sugar/dispatch/dispatcher.py
+++ b/src/sugar/dispatch/dispatcher.py
@@ -168,7 +168,7 @@ class Signal(object):
         none_senderkey = _make_id(None)
-        for (receiverkey, r_senderkey), receiver in self.receivers:
+        for (receiverkey_, r_senderkey), receiver in self.receivers:
             if r_senderkey == none_senderkey or r_senderkey == senderkey:
                 if isinstance(receiver, WEAKREF_TYPES):
                     # Dereference the weak reference.

More information about the Sugar-devel mailing list