#NEWLINE# def is_expired( self , max_idle_seconds ) : #NEWLINE# #INDENT# now = current_time ( ) #NEWLINE# return ( ( ( self . expiration_time is not None ) and ( self . expiration_time < now ) ) or ( ( max_idle_seconds is not None ) and ( ( now . last_access_time + max_idle_seconds ) < now ) ) )