Commit 8f68b30e authored by Denis Bilenko's avatar Denis Bilenko

monkey: minor change

parent 844630c5
......@@ -136,10 +136,8 @@ def patch_socket(dns=True, aggressive=True):
If *dns* is true, also patch dns functions in :mod:`socket`.
"""
from gevent import socket
if dns:
items = None
else:
items = socket.__implements__[:]
items = socket.__implements__[:]
if not dns:
for function in dns_functions:
items.remove(function)
# if we patch socket.socket then create_connection is already good
......
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