Commit 02a2ac29 authored by Denis Bilenko's avatar Denis Bilenko

monkey: fix patch_socket which used wrong import. Thanks to Marco Caramma.

parent 6b139a64
...@@ -59,7 +59,7 @@ def patch_thread(threading=True, _threading_local=True): ...@@ -59,7 +59,7 @@ def patch_thread(threading=True, _threading_local=True):
def patch_socket(dns=True, aggressive=True): def patch_socket(dns=True, aggressive=True):
from gevent.socket import socket, fromfd, socketpair, SocketType from gevent import socket
_socket = __import__('socket') _socket = __import__('socket')
_socket.socket = socket.socket _socket.socket = socket.socket
_socket.SocketType = socket.SocketType _socket.SocketType = socket.SocketType
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment