[PATCH] signal handler should only be called with 2 args

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Feb 14 14:52:07 GMT 2011

I accidentally added "self" as first parameter to the signal handler
method. Of course it is not called with a class instance, the signal
handler always only receives 2 parameters: the signal number and the
stack frame. So just removing the self fixes things.

Spotted and proposed correct fix by Christian Holme <cholme at gmx.com>.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
 offlineimap/init.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/offlineimap/init.py b/offlineimap/init.py
index 44c7229..232de25 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -249,7 +249,7 @@ class OfflineImap:
         self.lock(config, ui)
-        def sigterm_handler(self, signum, frame):
+        def sigterm_handler(signum, frame):
             # die immediately
             ui = getglobalui()

More information about the OfflineIMAP-project mailing list