Back to index

python3.2  3.2.2
Public Member Functions
importlib._bootstrap._ImportLockContext Class Reference

List of all members.

Public Member Functions

def __enter__
def __exit__

Detailed Description

Context manager for the import lock.

Definition at line 746 of file _bootstrap.py.


Member Function Documentation

Acquire the import lock.

Definition at line 750 of file _bootstrap.py.

00750 
00751     def __enter__(self):
00752         """Acquire the import lock."""
00753         imp.acquire_lock()

def importlib._bootstrap._ImportLockContext.__exit__ (   self,
  exc_type,
  exc_value,
  exc_traceback 
)
Release the import lock regardless of any raised exceptions.

Definition at line 754 of file _bootstrap.py.

00754 
00755     def __exit__(self, exc_type, exc_value, exc_traceback):
00756         """Release the import lock regardless of any raised exceptions."""
00757         imp.release_lock()
00758 

Here is the caller graph for this function:


The documentation for this class was generated from the following file: