(config_path, key_path)
Unset key at key_path in config_path
Unset key at key_path in config_path
Unset key at key_path in config_path
def unset_config_value(config_path, key_path):
    """
    Unset key at key_path in config_path
    """
    # FIXME: Have a file lock here
    # FIXME: Validate schema here
    try:
        with open(config_path) as f:
            config = yaml.load(f)
    except FileNotFoundError:
        config = {}

    config = unset_item_from_config(config, key_path)

    with open(config_path, "w") as f:
        yaml.dump(config, f)
def unset_config_value ( config_path , key_path ) : # FIXME: Have a file lock here # FIXME: Validate schema here try : with open ( config_path ) as f : config = yaml . load ( f ) except FileNotFoundError : config = { } config = unset_item_from_config ( config , key_path ) with open ( config_path , "w" ) as f : yaml . dump ( config , f )