#NEWLINE# def read_config( self ) : #NEWLINE# #INDENT# ' Read credentials from the config file ' #NEWLINE# with open ( cfg . config_file ) as cfg : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . config . read_file ( cfg ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# self . config . readfp ( cfg ) #NEWLINE# #UNINDENT# #UNINDENT# self . client_id = self . config . get ( 'misfit' , 'client_id' ) #NEWLINE# self . client_secret = self . config . get ( 'misfit' , 'client_secret' ) #NEWLINE# self . access_token = self . config . get ( 'misfit' , 'access_token' )