def read_config(self):
        """ Read credentials from the config file """
        with open(self.config_file) as cfg:
            try:
                self.config.read_file(cfg)
            except __HOLE__:  # Not python 3.X fallback
                self.config.readfp(cfg)
        self.client_id = self.config.get('misfit', 'client_id')
        self.client_secret = self.config.get('misfit', 'client_secret')
        self.access_token = self.config.get('misfit', 'access_token')
dataset/ETHPy150Open orcasgit/python-misfit/misfit/cli.py/MisfitCli.read_config