Module Expr Str ImportFrom alias alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Return Call NameLoad Call NameLoad BinOpMult Call NameLoad Num decorator_list ImportFrom alias If UnaryOpNot Call AttributeLoad NameLoad attr body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore NameLoad orelse Assign NameStore NameLoad TryExcept body ImportFrom alias Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call NameLoad Num Num NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Return orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr NameLoad Raise orelse Raise Call NameLoad Str decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Str orelse Assign NameStore Str With Call NameLoad NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str handlers ExceptHandler type NameLoad name NameStore body If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr NameLoad Raise orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad While NameLoad body TryExcept body Expr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If BoolOpAnd NameLoad CompareIn AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue orelse If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Raise TryExcept body If CompareIsNot NameLoad NameLoad body Expr Call NameLoad Call NameLoad NameLoad Num handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue Raise Assign NameStore NameLoad Continue Raise Return NameLoad Raise Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr Return UnaryOpNot NameLoad decorator_list Assign NameStore ListLoad Str Str
N/A N/A 
Filesystem-based interprocess mutex.
 __future__ absolute_import division N/A errno N/A os time time _uniquefloat twisted.python.runtime platform twisted.python.compat _PY3 unique N/A N/A N/A N/A N/A N/A str N/A int N/A N/A _uniquefloat 1000 N/A os rename N/A N/A N/A N/A platform isWindows N/A os kill os symlink os readlink os remove rmlink N/A _windows False N/A N/A _windows True N/A N/A win32api OpenProcess N/A pywintypes N/A N/A N/A ImportError N/A N/A kill None N/A N/A ERROR_ACCESS_DENIED 5 N/A ERROR_INVALID_PARAMETER 87 kill N/A N/A pid signal N/A N/A N/A N/A N/A N/A OpenProcess 0 0 pid N/A N/A N/A N/A pywintypes error N/A e N/A N/A N/A N/A N/A e args N/A 0 ERROR_ACCESS_DENIED N/A N/A N/A N/A N/A N/A N/A e args N/A 0 ERROR_INVALID_PARAMETER N/A N/A N/A OSError N/A errno ESRCH None N/A N/A N/A N/A RuntimeError OpenProcess is required to fail. N/A N/A _open open symlink N/A N/A value filename N/A N/A N/A 
        Write a file at C{filename} with the contents of C{value}. See the
        above comment block as to why this is needed.
         N/A newlinkname N/A N/A N/A filename . N/A unique .newlink N/A newvalname N/A N/A N/A os path join newlinkname symlink N/A N/A N/A os mkdir newlinkname N/A _PY3 N/A N/A mode w N/A N/A mode wc N/A N/A _open newvalname mode f N/A N/A N/A N/A f write value N/A N/A N/A f flush N/A N/A N/A N/A rename newlinkname filename N/A N/A N/A N/A N/A N/A os remove newvalname N/A N/A N/A os rmdir newlinkname N/A N/A readlink N/A N/A filename N/A N/A N/A 
        Read the contents of C{filename}. See the above comment block as to why
        this is needed.
         N/A N/A N/A fObj N/A _open N/A N/A N/A os path join filename symlink r N/A N/A N/A IOError N/A e N/A N/A N/A N/A N/A e errno N/A errno ENOENT N/A N/A e errno N/A errno EIO N/A N/A N/A OSError N/A e errno None N/A N/A N/A result N/A N/A fObj read N/A N/A N/A fObj close N/A result N/A rmlink N/A N/A filename N/A N/A N/A N/A N/A os remove N/A N/A N/A os path join filename symlink N/A N/A N/A os rmdir filename N/A FilesystemLock N/A object N/A N/A 
    A mutex.

    This relies on the filesystem property that creating
    a symlink is an atomic operation and that it will
    fail if the symlink already exists.  Deleting the
    symlink will release the lock.

    @ivar name: The name of the file associated with this lock.

    @ivar clean: Indicates whether this lock was released cleanly by its
        last owner.  Only meaningful after C{lock} has been called and
        returns True.

    @ivar locked: Indicates whether the lock is currently held by this
        object.
     N/A clean None N/A locked False __init__ N/A N/A self name N/A N/A N/A N/A self name name N/A lock N/A N/A self N/A N/A N/A 
        Acquire this lock.

        @rtype: C{bool}
        @return: True if the lock is acquired, false otherwise.

        @raise: Any exception os.symlink() may raise, other than
        EEXIST.
         N/A clean True N/A True N/A N/A N/A N/A N/A symlink N/A str N/A N/A os getpid N/A self name N/A N/A N/A OSError N/A e N/A N/A N/A _windows N/A N/A e errno N/A N/A errno EACCES N/A errno EIO N/A N/A False N/A N/A N/A e errno N/A errno EEXIST N/A N/A N/A N/A pid N/A readlink N/A self name N/A N/A N/A N/A IOError OSError N/A e N/A N/A N/A N/A e errno N/A errno ENOENT N/A N/A N/A N/A N/A _windows N/A N/A e errno N/A errno EACCES N/A N/A False N/A N/A N/A N/A N/A kill None N/A N/A N/A kill N/A int pid 0 N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno ESRCH N/A N/A N/A N/A N/A rmlink N/A self name N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno ENOENT N/A N/A N/A N/A clean False N/A N/A N/A False N/A N/A N/A self locked True N/A N/A self clean clean N/A True N/A unlock N/A N/A self N/A N/A N/A 
        Release this lock.

        This deletes the directory with the given name.

        @raise: Any exception os.readlink() may raise, or
        ValueError if the lock is not owned by this process.
         N/A pid N/A readlink N/A self name N/A N/A N/A int pid N/A N/A os getpid N/A N/A N/A ValueError N/A Lock %r not owned by this process N/A N/A self name N/A N/A rmlink N/A self name N/A N/A self locked False N/A N/A isLocked N/A N/A name N/A N/A N/A 
    Determine if the lock of the given name is held or not.

    @type name: C{str}
    @param name: The filesystem path to the lock to test

    @rtype: C{bool}
    @return: True if the lock is held, False otherwise.
     N/A l N/A FilesystemLock name N/A result None N/A N/A N/A result N/A N/A l lock N/A N/A result N/A N/A N/A N/A l unlock N/A N/A result N/A N/A __all__ N/A FilesystemLock isLocked