[Sugar-devel] [PATCH sugar-base 15/17] pylint cleanup: sugar.dispatch.saferef: remove unused variable

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


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 56166d9..bb73b5d 100644
--- a/src/sugar/dispatch/saferef.py
+++ b/src/sugar/dispatch/saferef.py
@@ -126,7 +126,7 @@ class BoundMethodWeakref(object):
                 except Exception, e:
                     try:
                         traceback.print_exc()
-                    except AttributeError, err:
+                    except AttributeError:
                         print ('Exception during saferef %s cleanup function'
                             ' %s: %s' % (self, function, e))
         self.deletionMethods = [onDelete]
-- 
1.7.1



More information about the Sugar-devel mailing list