(module)
wrapmodule(module)
    Attempts to replace a module's socket library with a SOCKS socket. Must set
    a default proxy using setdefaultproxy(...) first.
    This will only work on modules that import socket directly into the namespace;
    most of the Python Standard Library falls into this category.
wrapmodule(module)
    Attempts to replace a module's socket library with a SOCKS socket. Must set
    a default proxy using setdefaultproxy(...) first.
    This will only work on modules that import socket directly into the namespace;
    most of the Python Standard Library falls into this category.
wrapmodule ( module ) Attempts to replace a module s socket library with a SOCKS socket . Must set a default proxy using setdefaultproxy ( ... ) first . This will only work on modules that import socket directly into the namespace ; most of the Python Standard Library falls into this category .
def wrapmodule(module):
    """wrapmodule(module)
    Attempts to replace a module's socket library with a SOCKS socket. Must set
    a default proxy using setdefaultproxy(...) first.
    This will only work on modules that import socket directly into the namespace;
    most of the Python Standard Library falls into this category.
    """
    if _defaultproxy != None:
        module.socket.socket = socksocket
        module.socket.create_connection = create_connection
    else:
        raise GeneralProxyError((4, "no proxy specified"))
def wrapmodule ( module ) : if _defaultproxy != None : module . socket . socket = socksocket module . socket . create_connection = create_connection else : raise GeneralProxyError ( ( 4 , "no proxy specified" ) )