def patch_all(socket=True, dns=True, time=True, select=True, thread=True, os=True, ssl=True, httplib=False, subprocess=True, sys=False, aggressive=True, Event=False, builtins=True, signal=True):
 (_warnings, first_time) = _check_repatching(**locals())
 if ((not _warnings) and (not first_time)):
  return
 if os:
  patch_os()
 if time:
  patch_time()
 if thread:
  patch_thread(Event=Event, _warnings=_warnings)
 if sys:
  patch_sys()
 if socket:
  patch_socket(dns=dns, aggressive=aggressive)
 if select:
  patch_select(aggressive=aggressive)
 if ssl:
  patch_ssl()
 if httplib:
  raise ValueError('gevent.httplib is no longer provided, httplib must be False')
 if subprocess:
  patch_subprocess()
 if builtins:
  patch_builtins()
 if signal:
  if (not os):
   _queue_warning('Patching signal but not os will result in SIGCHLD handlers installed after this not being called and os.waitpid may not function correctly if gevent.subprocess is used. This may raise an error in the future.', _warnings)
  patch_signal()
 _process_warnings(_warnings)

def patch_all ( socket = True , dns = True , time = True , select = True , thread = True , os = True , ssl = True , httplib = False , subprocess = True , sys = False , aggressive = True , Event = False , builtins = True , signal = True ) : ( _warnings , first_time ) = _check_repatching ( ** locals ( ) ) if ( ( not _warnings ) and ( not first_time ) ) : return if os : patch_os ( ) if time : patch_time ( ) if thread : patch_thread ( Event = Event , _warnings = _warnings ) if sys : patch_sys ( ) if socket : patch_socket ( dns = dns , aggressive = aggressive ) if select : patch_select ( aggressive = aggressive ) if ssl : patch_ssl ( ) if httplib : raise ValueError ( 'gevent.httplib is no longer provided, httplib must be False' ) if subprocess : patch_subprocess ( ) if builtins : patch_builtins ( ) if signal : if ( not os ) : _queue_warning ( 'Patching signal but not os will result in SIGCHLD handlers installed after this not being called and os.waitpid may not function correctly if gevent.subprocess is used. This may raise an error in the future.' , _warnings ) patch_signal ( ) _process_warnings ( _warnings )
do all of the default monkey patching .