# Path: pacman_mirrors/functions/defaultFn.py
# def load_config_mirror_pool(self):
# def load_default_mirror_pool(self):
# def seed_mirrors(self, file, status=False):
# def sort_mirror_countries(self):
# 
# Path: pacman_mirrors/functions/fileFn.py
# def check_existance_of(filename, folder=False):
# def create_dir(foldername):
# def delete_file(filename):
# def return_mirror_filename(config):
# def write_mirror_list(config, servers, custom=False,
#                       quiet=False, interactive=False):
# def read_mirror_file(filename):
# def write_mirrorlist_header(handle, custom=False):
# def write_mirrorlist_entry(handle, mirror):
# 
# Path: pacman_mirrors/functions/jsonFn.py
# def json_dump_file(data, filename):
# def read_json_file(filename, dictionary=True):
# def write_json_file(data, filename, dictionary=False):
# 
# Path: pacman_mirrors/functions/validFn.py
# def custom_config_is_valid():
# def country_list_is_valid(onlycountry, countrylist):


from pacman_mirrors.functions import defaultFn
from pacman_mirrors.functions import fileFn
from pacman_mirrors.functions import jsonFn
from pacman_mirrors.functions import validFn
        return custom_pool


def check_custom_mirror_pool(self):
    """
    Custom mirror pool or countries from CLI
    :return: True/False
    """
    if validFn.custom_config_is_valid():
        self.custom = True
    else:
        self.selected_countries = self.config["country_pool"]
    return self.custom


def delete_custom_pool(self):
    """
    Delete custom mirror pool
    """
    self.custom = False
    self.config["country_pool"] = []
    fileFn.delete_file(self.config["custom_file"])


def load_custom_mirror_pool(self):
    """
    Load available custom mirrors and update their status from status.json
    If user request reset (--default) load the default pool
    """
    if self.default:

# Path: pacman_mirrors/functions/defaultFn.py
# def load_config_mirror_pool(self):
# def load_default_mirror_pool(self):
# def seed_mirrors(self, file, status=False):
# def sort_mirror_countries(self):
# 
# Path: pacman_mirrors/functions/fileFn.py
# def check_existance_of(filename, folder=False):
# def create_dir(foldername):
# def delete_file(filename):
# def return_mirror_filename(config):
# def write_mirror_list(config, servers, custom=False,
#                       quiet=False, interactive=False):
# def read_mirror_file(filename):
# def write_mirrorlist_header(handle, custom=False):
# def write_mirrorlist_entry(handle, mirror):
# 
# Path: pacman_mirrors/functions/jsonFn.py
# def json_dump_file(data, filename):
# def read_json_file(filename, dictionary=True):
# def write_json_file(data, filename, dictionary=False):
# 
# Path: pacman_mirrors/functions/validFn.py
# def custom_config_is_valid():
# def country_list_is_valid(onlycountry, countrylist):


# Path: pacman_mirrors/functions/customFn.py
from pacman_mirrors.functions import defaultFn
from pacman_mirrors.functions import fileFn
from pacman_mirrors.functions import jsonFn
from pacman_mirrors.functions import validFn

        return custom_pool


def check_custom_mirror_pool(self):
    """
    Custom mirror pool or countries from CLI
    :return: True/False
    """
    if validFn.custom_config_is_valid():
        self.custom = True
    else:
        self.selected_countries = self.config["country_pool"]
    return self.custom


def delete_custom_pool(self):
    """
    Delete custom mirror pool
    """
    self.custom = False
    self.config["country_pool"] = []
    fileFn.delete_file(self.config["custom_file"])


def load_custom_mirror_pool(self):
    """
    Load available custom mirrors and update their status from status.json
    If user request reset (--default) load the default pool
    """
    if self.default:

        defaultFn.load_default_mirror_pool(self)