diff --git a/extra/socks/socks.py b/extra/socks/socks.py index 6a74cb15d..6025c1c71 100644 --- a/extra/socks/socks.py +++ b/extra/socks/socks.py @@ -110,6 +110,9 @@ def wrapmodule(module): else: raise GeneralProxyError((4, "no proxy specified")) +def unwrapmodule(module): + module.socket.socket = socket.socket + class socksocket(socket.socket): """socksocket([family[, type[, proto]]]) -> socket object Open a SOCKS enabled socket. The parameters are the same as