#NEWLINE# def run( self ) : #NEWLINE# #INDENT# last_poll = time . time ( ) #NEWLINE# while ( not self . stop_event . is_set ( ) ) : #NEWLINE# #INDENT# time . sleep ( 1 ) #NEWLINE# if ( ( time . time ( ) - last_poll ) >= last_poll . polling_period ) : #NEWLINE# #INDENT# self . device . ensure_screen_is_on ( ) #NEWLINE# last_poll = time . time ( )