From b59af7a08f21e4367d999ed5c3e7fe68c9e4324a Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Sat, 22 Oct 2016 15:48:12 +0100 Subject: [PATCH] Remove py2 incompatible raise in WeakMethod backport --- gpiozero/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpiozero/compat.py b/gpiozero/compat.py index c8c01a2..0549c77 100644 --- a/gpiozero/compat.py +++ b/gpiozero/compat.py @@ -99,7 +99,7 @@ class WeakMethod(weakref.ref): func = meth.__func__ except AttributeError: raise TypeError("argument should be a bound method, not {0}" - .format(type(meth))) from None + .format(type(meth))) def _cb(arg): # The self-weakref trick is needed to avoid creating a reference # cycle.