#NEWLINE# def __init__( self , resp = None ) : #NEWLINE# #INDENT# self . scope = [ ] #NEWLINE# self . token_expiration_time = 0 #NEWLINE# self . access_token = None #NEWLINE# self . refresh_token = None #NEWLINE# self . token_type = None #NEWLINE# self . replaced = False #NEWLINE# if resp : #NEWLINE# #INDENT# for ( prop , val ) in resp . items ( ) : #NEWLINE# #INDENT# setattr ( self , prop , val ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# _expires_in = resp [ 'expires_in' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if _tet : #NEWLINE# #INDENT# _tet = ( utc_time_sans_frac ( ) + int ( _expires_in ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _tet = 0 #NEWLINE# #UNINDENT# self . token_expiration_time = int ( _tet )