Module Import alias Import alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Assign NameStore Num Assign NameStore Call NameLoad BinOpDiv AttributeLoad NameLoad attr NameLoad While NameLoad body If Call AttributeLoad NameLoad attr body AugAssignSub NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad If Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os N/A time FileLocked N/A Exception N/A N/A N/A FileLock N/A object N/A __init__ N/A N/A self lock_filename timeout force N/A None False N/A N/A N/A self lock_filename N/A %s.lock lock_filename N/A N/A self timeout timeout N/A N/A self force force N/A N/A self _pid N/A str N/A N/A os getpid N/A N/A self pid_filename N/A N/A N/A N/A os path join N/A N/A N/A os path dirname N/A self lock_filename N/A self _pid .lock N/A get_lock_pid N/A N/A self N/A N/A N/A N/A N/A N/A int N/A N/A N/A open N/A self lock_filename read N/A N/A N/A IOError N/A N/A N/A N/A self release N/A valid_lock N/A N/A self N/A N/A N/A 
        See if the lock exists and is left over from an old process.
         N/A lock_pid N/A N/A self get_lock_pid N/A N/A lock_pid None N/A N/A False N/A N/A N/A self _pid lock_pid N/A N/A True N/A N/A N/A N/A N/A os kill lock_pid 0 N/A N/A N/A OSError N/A N/A N/A N/A self release N/A False N/A True N/A is_locked N/A N/A self force N/A False N/A N/A N/A N/A N/A self valid_lock N/A N/A False N/A N/A N/A self timeout N/A N/A N/A self force N/A N/A N/A N/A self release N/A False N/A N/A N/A FileLocked N/A interval 0.1 N/A intervals N/A int N/A N/A self timeout interval N/A intervals N/A N/A N/A N/A self valid_lock N/A N/A intervals 1 N/A N/A N/A time sleep interval N/A N/A True N/A N/A N/A self valid_lock N/A N/A N/A self force N/A N/A N/A N/A self release N/A N/A N/A FileLocked N/A acquire N/A N/A self N/A N/A N/A Create a pid filename and create a symlink (the actual lock file)
        across platforms that points to it. Symlink is used because it's an
        atomic operation across platforms.
         N/A pid_file N/A N/A os open N/A self pid_filename N/A N/A N/A os O_CREAT N/A os O_EXCL N/A os O_RDWR N/A N/A N/A os write pid_file N/A N/A N/A str N/A N/A os getpid encode utf-8 N/A N/A N/A os close pid_file N/A N/A hasattr os symlink N/A N/A N/A N/A os symlink N/A self pid_filename N/A self lock_filename N/A N/A N/A self lock_filename N/A self pid_filename N/A release N/A N/A self N/A N/A N/A Try to delete the lock files. Doesn't matter if we fail N/A N/A N/A self lock_filename N/A self pid_filename N/A N/A N/A N/A N/A N/A os unlink N/A self lock_filename N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A N/A os remove N/A self pid_filename N/A N/A N/A OSError N/A N/A N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A N/A self is_locked N/A N/A N/A N/A self acquire N/A self N/A __exit__ N/A N/A self type value traceback N/A N/A N/A N/A N/A self release N/A N/A