#NEWLINE# def handle_messages( self ) : #NEWLINE# #INDENT# '\n        Get and parse up to 250 messages from the queue then plot.  Break early if less.\n        ' #NEWLINE# for i in range ( 250 ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# m = self . queue . get ( block = True , timeout = 1 ) #NEWLINE# self . parse_message ( m ) #NEWLINE# #UNINDENT# except Empty : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# self . plot_urls ( )