Permalink
Browse files

Python: Use znc.Socket if no socket class is specified in CreateSocket()

Thanks to Azelphur for giving this idea.
  • Loading branch information...
1 parent 2ffcbed commit 3fd0429e1e710adbd2dd0ed35cf05959b4e3e6db Alexey Sokolov committed Nov 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/modpython/znc.py
View
@@ -163,7 +163,7 @@ def OnLoad(self, sArgs, sMessage):
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)

0 comments on commit 3fd0429

Please sign in to comment.