Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-16 11:12:38 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-23 17:03:31 (GMT)
commit4d2e5f62bca5ec4f37e4cbadc161a81a1812d7c0 (patch)
tree16bce635acf5d02921b47a5d18e2f7fbae6fe91c
parent414c31f93a9a826e43f1c6ad395e13d6c2db75fb (diff)
sugar.dispatch.saferef: ignore incorrect pylint warning
pylint isn't smart enough to figure out our class magic, so squelch the warning. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/sugar/dispatch/saferef.py1
1 files changed, 1 insertions, 0 deletions
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