#NEWLINE# def get( self ) : #NEWLINE# #INDENT# 'Used to retreive one report form the queue' #NEWLINE# if self . __locked_down : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# self . posted_event . wait ( ) #NEWLINE# self . fresh_lock . acquire ( ) #NEWLINE# if self . __locked_down : #NEWLINE# #INDENT# self . fresh_lock . release ( ) #NEWLINE# return None #NEWLINE# #UNINDENT# item = self . fresh_queue . pop ( 0 ) #NEWLINE# if ( not self . fresh_queue ) : #NEWLINE# #INDENT# self . posted_event . clear ( ) #NEWLINE# #UNINDENT# self . fresh_lock . release ( ) #NEWLINE# return item