#NEWLINE# def start_progress( self , msg ) : #NEWLINE# #INDENT# assert ( not self . in_progress ) , ( 'Tried to start_progress(%r) while in_progress %r' % ( msg , self . in_progress ) ) #NEWLINE# if self . level_matches ( self . NOTIFY , self . _stdout_level ( ) ) : #NEWLINE# #INDENT# sys . stdout . write ( msg ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# self . in_progress_hanging = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . in_progress_hanging = False #NEWLINE# #UNINDENT# self . in_progress = msg