def wrap_module(module):
 if socksocket.default_proxy:
  module.socket.socket = socksocket
 else:
  raise GeneralProxyError('No default proxy specified')

def wrap_module ( module ) : if socksocket . default_proxy : module . socket . socket = socksocket else : raise GeneralProxyError ( 'No default proxy specified' )
attempts to replace a modules socket library with a socks socket .