airflow/utils/configuration.py
def tmp_configuration_copy(chmod=0o600):
    """
    Returns a path for a temporary file including a full copy of the configuration
    settings.
    :return: a path to a temporary file
    """
    cfg_dict = conf.as_dict(display_sensitive=True, raw=True)
    temp_fd, cfg_path = mkstemp()

    with os.fdopen(temp_fd, 'w') as temp_file:
        if chmod is not None:
            os.fchmod(temp_fd, chmod)
        json.dump(cfg_dict, temp_file)

    return cfg_path
def tmp_configuration_copy(chmod=0o600):
    """
    Returns a path for a temporary file including a full copy of the configuration
    settings.
    :return: a path to a temporary file
    """
    cfg_dict = conf.as_dict(display_sensitive=True, raw=True)
    temp_fd, cfg_path = mkstemp()

    with os.fdopen(temp_fd, 'w') as temp_file:
        if chmod is not None:
            os.fchmod(temp_fd, chmod)
        json.dump(cfg_dict, temp_file)

    return cfg_path
def tmp_configuration_copy ( chmod = 0o600 ) : cfg_dict = conf . as_dict ( display_sensitive = True , raw = True ) temp_fd , cfg_path = mkstemp ( ) with os . fdopen ( temp_fd , 'w' ) as temp_file : if chmod is not None : os . fchmod ( temp_fd , chmod ) json . dump ( cfg_dict , temp_file ) return cfg_path
Returns a path for a temporary file including a full copy of the configuration
    settings.
    :return: a path to a temporary file
Returns a path for a temporary file including a full copy of the configuration settings . : return : a path to a temporary file