Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise orelse Raise decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Global identifier If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict If BoolOpOr UnaryOpNot NameLoad CompareGt NameLoad Call AttributeLoad NameLoad attr Str Num body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad With Call NameLoad NameLoad NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore NameLoad Return TupleLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Expr Yield handlers ExceptHandler type NameLoad body With Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults vararg kwarg body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str If NameLoad body Expr Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A contextlib N/A errno N/A os N/A tempfile climateclient.openstack.common excutils climateclient.openstack.common.gettextutils _ climateclient.openstack.common log logging N/A LOG N/A N/A logging getLogger __name__ N/A _FILE_CACHE N/A ensure_tree N/A N/A path N/A N/A N/A Create a directory (and any ancestor directories required)

    :param path: Directory to create
     N/A N/A N/A N/A N/A os makedirs path N/A N/A N/A OSError N/A exc N/A N/A N/A N/A exc errno N/A errno EEXIST N/A N/A N/A N/A N/A N/A os path isdir path N/A N/A N/A N/A N/A read_cached_file N/A N/A filename force_reload N/A False N/A N/A Read from a file if it has been modified.

    :param force_reload: Whether to reload the file.
    :returns: A tuple with a boolean specifying if the data is fresh
              or not.
     N/A _FILE_CACHE N/A N/A force_reload N/A filename _FILE_CACHE N/A N/A N/A _FILE_CACHE N/A filename N/A reloaded False N/A mtime N/A N/A N/A os path getmtime filename N/A cache_info N/A N/A _FILE_CACHE setdefault filename N/A N/A N/A N/A cache_info N/A mtime N/A N/A cache_info get mtime 0 N/A N/A N/A N/A LOG debug N/A N/A _ Reloading cached file %s filename N/A N/A open filename fap N/A N/A N/A cache_info N/A data N/A N/A fap read N/A N/A cache_info N/A mtime mtime N/A reloaded True N/A N/A reloaded N/A cache_info N/A data N/A delete_if_exists N/A N/A path remove N/A N/A os unlink N/A N/A Delete a file, but ignore file not found error.

    :param path: File to delete
    :param remove: Optional function to remove passed path
     N/A N/A N/A N/A remove path 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 remove_path_on_error N/A N/A path remove N/A delete_if_exists N/A N/A Protect code that wants to operate on PATH atomically.
    Any exception will cause PATH to be removed.

    :param path: File to work with
    :param remove: Optional function to remove passed path
     N/A N/A N/A N/A N/A N/A N/A Exception N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A remove path N/A N/A contextlib contextmanager file_open N/A N/A N/A args kwargs N/A N/A Open file

    see built-in file() documentation for more details

    Note: The reason this is kept in a separate module is to easily
    be able to provide a stub module that doesn't alter system
    state at all (for unit tests)
     N/A N/A file args kwargs N/A write_to_tempfile N/A N/A content path suffix prefix N/A None tmp N/A N/A Create temporary file or use existing file.

    This util is needed for creating temporary file with
    specified content, suffix and prefix. If path is not None,
    it will be used for writing content. If the path doesn't
    exist it'll be created.

    :param content: content for temporary file.
    :param path: same as parameter 'dir' for mkstemp
    :param suffix: same as parameter 'suffix' for mkstemp
    :param prefix: same as parameter 'prefix' for mkstemp

    For example: it can be used in database tests for creating
    configuration files.
     N/A path N/A N/A N/A ensure_tree path N/A N/A fd path N/A N/A tempfile mkstemp suffix suffix dir path prefix prefix N/A N/A N/A N/A N/A os write fd content N/A N/A N/A N/A os close fd N/A path N/A