def load_file(self, filename):
        try:
            with io.open(filename, 'r', encoding=config.get('encoding')) as f:
                return f.read()
        except __HOLE__ as e:
            raise I18nFileLoadError("error loading file {0}: {1}".format(filename, e.strerror))
dataset/ETHPy150Open tuvistavie/python-i18n/i18n/loaders/loader.py/Loader.load_file