def wrapmodule(module):
 if (_defaultproxy != None):
  module.socket.socket = socksocket
 else:
  raise GeneralProxyError((4, 'no proxy specified'))

def wrapmodule ( module ) : if ( _defaultproxy != None ) : module . socket . socket = socksocket else : raise GeneralProxyError ( ( 4 , 'no proxy specified' ) )
wrapmodule attempts to replace a modules socket library with a socks socket .