def load(self):
        try:
            context = self.fmt_module.load(open(self.configfile, 'r'))
        except __HOLE__, error:
            raise ValueError(
                'loading configuration file: {} ({})'.format(
                    error, self.configfile))

        return context
dataset/ETHPy150Open intuition-io/insights/insights/contexts/file.py/FileContext.load