From 3fd0429e1e710adbd2dd0ed35cf05959b4e3e6db Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 19 Nov 2011 11:46:47 +0700 Subject: [PATCH] Python: Use znc.Socket if no socket class is specified in CreateSocket() Thanks to Azelphur for giving this idea. --- modules/modpython/znc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/modpython/znc.py b/modules/modpython/znc.py index f48c9d9f..0fb2cf6c 100644 --- a/modules/modpython/znc.py +++ b/modules/modpython/znc.py @@ -163,7 +163,7 @@ class Module: def _GetSubPages(self): return self.GetSubPages() - def CreateSocket(self, socketclass, *the, **rest): + def CreateSocket(self, socketclass=Socket, *the, **rest): socket = socketclass() socket._csock = CreatePySocket(self._cmod, socket) socket.Init(*the, **rest)