def __init__()

in releasedocmaker/src/main/python/releasedocmaker/utils.py [0:0]


    def __init__(self, base_file_name, file_name_pattern, keys, params=None):
        if params is None:
            params = {}
        self.params = params
        self.base = open(base_file_name % params, 'w', encoding='utf-8')  # pylint: disable=consider-using-with
        self.others = {}
        for key in keys:
            both = dict(params)
            both['key'] = key
            filename = file_name_pattern % both
            self.others[key] = open(filename, 'w', encoding='utf-8')  # pylint: disable=consider-using-with