[Sugar-devel] [PATCH sugar-base 14/17] sugar.dispatch.saferef: ignore incorrect pylint warning

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


pylint isn't smart enough to figure out our class magic, so squelch the
warning.

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

diff --git a/src/sugar/dispatch/saferef.py b/src/sugar/dispatch/saferef.py
index 1632b34..56166d9 100644
--- a/src/sugar/dispatch/saferef.py
+++ b/src/sugar/dispatch/saferef.py
@@ -115,6 +115,7 @@ class BoundMethodWeakref(object):
             methods = self.deletionMethods[:]
             del self.deletionMethods[:]
             try:
+                # pylint: disable=W0212
                 del self.__class__._allInstances[self.key]
             except KeyError:
                 pass
-- 
1.7.1



More information about the Sugar-devel mailing list