(name)
Acquires then releases the module lock for a given module name.

    This is used to ensure a module is completely initialized, in the
    event it is being imported by another thread.
Acquires then releases the module lock for a given module name.
Acquires then releases the module lock for a given module name .
def _lock_unlock_module(name):
    """Acquires then releases the module lock for a given module name.

    This is used to ensure a module is completely initialized, in the
    event it is being imported by another thread.
    """
    lock = _get_module_lock(name)
    try:
        lock.acquire()
    except _DeadlockError:
        # Concurrent circular import, we'll accept a partially initialized
        # module object.
        pass
    else:
        lock.release()
def _lock_unlock_module ( name ) : lock = _get_module_lock ( name ) try : lock . acquire ( ) except _DeadlockError : # Concurrent circular import, we'll accept a partially initialized # module object. pass else : lock . release ( )