Commit 18dbf79a authored by Denis Bilenko's avatar Denis Bilenko

monkey: don't patch socket.getnameinfo since it's gone

parent 5bfc3872
......@@ -50,10 +50,9 @@ def patch_socket(dns=True):
def patch_dns():
from gevent.socket import getaddrinfo, getnameinfo, gethostbyname
from gevent.socket import gethostbyname, getaddrinfo
_socket = __import__('socket')
_socket.getaddrinfo = getaddrinfo
_socket.getnameinfo = getnameinfo
_socket.gethostbyname = gethostbyname
def patch_ssl():
......
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