From 95edf3a41f9d6c2078f0bbd775284281a213b2c4 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Sun, 17 Apr 2011 04:10:34 +0600 Subject: [PATCH] Connection.on_disconnect is called without parameters (e.g. in Connecition.read) but Client.on_disconnect have required (and unused) 'callbacks' argument and this causes TypeErrors. This argument is removed. --- brukva/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brukva/client.py b/brukva/client.py index 0a48f03..ec830f0 100644 --- a/brukva/client.py +++ b/brukva/client.py @@ -339,7 +339,7 @@ def on_connect(self): if self.selected_db: self.select(self.selected_db) - def on_disconnect(self, callbacks): + def on_disconnect(self): raise ConnectionError("Socket closed on remote end") ####