Commit feed3312 authored by Denis Bilenko's avatar Denis Bilenko

monkey: use gevent.socket.ssl instead of its deprecated alias wrap_ssl

parent 3b644285
...@@ -39,11 +39,11 @@ def patch_thread(): ...@@ -39,11 +39,11 @@ def patch_thread():
def patch_socket(dns=True): def patch_socket(dns=True):
from gevent.socket import socket, fromfd, wrap_ssl, socketpair from gevent.socket import socket, fromfd, ssl, socketpair
_socket = __import__('socket') _socket = __import__('socket')
_socket.socket = socket _socket.socket = socket
_socket.fromfd = fromfd _socket.fromfd = fromfd
_socket.ssl = wrap_ssl _socket.ssl = ssl
_socket.socketpair = socketpair _socket.socketpair = socketpair
if dns: if dns:
patch_dns() patch_dns()
......
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