def patch_dns():
 from gevent import socket
 patch_module('socket', items=socket.__dns__)

def patch_dns ( ) : from gevent import socket patch_module ( 'socket' , items = socket . __dns__ )
replace dns functions in :mod:socket with cooperative versions .