#NEWLINE# def _discard_line( line ) : #NEWLINE# #INDENT# if ( line is None ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# discard_prefixes = [ 'adding ' , 'added ' , 'updating ' , 'requesting ' , 'pulling from ' , 'searching for ' , '(' , 'no changes found' , '0 files' , 'A  ' , 'D  ' , 'U  ' , 'At revision' , 'Path: ' , 'First,' , 'Installing' , 'Using ' , 'No ' , 'Tree ' , 'All ' , '+N  ' , '-D  ' , ' M  ' , ' M* ' , 'RM' ] #NEWLINE# for pre in discard_prefixes : #NEWLINE# #INDENT# if line . startswith ( pre ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False