From 5f1d4ce43308bb264dff485a8c29eb9b4d2fe534 Mon Sep 17 00:00:00 2001 From: Rodolfo Henrique Carvalho Date: Sun, 22 Jan 2012 01:53:07 -0200 Subject: Set default argument value. Without this features/feature_mechanisms/mechanisms.py throws an error when calling the method `process' without arguments on this mechanism. --- sleekxmpp/thirdparty/suelta/mechanisms/cram_md5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/thirdparty/suelta') diff --git a/sleekxmpp/thirdparty/suelta/mechanisms/cram_md5.py b/sleekxmpp/thirdparty/suelta/mechanisms/cram_md5.py index ba44befe..e07bb883 100644 --- a/sleekxmpp/thirdparty/suelta/mechanisms/cram_md5.py +++ b/sleekxmpp/thirdparty/suelta/mechanisms/cram_md5.py @@ -33,7 +33,7 @@ class CRAM_MD5(Mechanism): if 'savepass' not in self.values: del self.values['password'] - def process(self, challenge): + def process(self, challenge=None): """ """ if challenge is None: -- cgit v1.2.3