#NEWLINE# def _process_print_task( self , print_task ) : #NEWLINE# #INDENT# print_str = print_task . message #NEWLINE# print_to_stderr = False #NEWLINE# if print_task . error : #NEWLINE# #INDENT# self . num_errors_seen += 1 #NEWLINE# print_to_stderr = True #NEWLINE# #UNINDENT# final_str = '' #NEWLINE# if print_task . warning : #NEWLINE# #INDENT# self . num_warnings_seen += 1 #NEWLINE# print_to_stderr = True #NEWLINE# final_str += print_str . ljust ( self . _progress_length , ' ' ) #NEWLINE# final_str += '\n' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if print_task . total_parts : #NEWLINE# #INDENT# op_list = print_str . split ( ':' ) #NEWLINE# print_str = ':' . join ( op_list [ 1 : ] ) #NEWLINE# total_part = print_task . total_parts #NEWLINE# self . _num_parts += 1 #NEWLINE# if ( print_str in self . _progress_dict ) : #NEWLINE# #INDENT# self . _progress_dict [ print_str ] [ 'parts' ] += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _progress_dict [ print_str ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _progress_dict [ print_str ] [ 'parts' ] = 1 #NEWLINE# self . _progress_dict [ print_str ] [ 'total' ] = total_part #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# print_components = print_str . split ( ':' ) #NEWLINE# final_str += print_str . ljust ( self . _progress_length , ' ' ) #NEWLINE# final_str += '\n' #NEWLINE# key = ':' . join ( print_components [ 1 : ] ) #NEWLINE# if ( key in self . _progress_dict ) : #NEWLINE# #INDENT# self . _progress_dict . pop ( print_str , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _num_parts += 1 #NEWLINE# #UNINDENT# self . _file_count += 1 #NEWLINE# #UNINDENT# #UNINDENT# if ( print_to_stderr and ( not self . _quiet ) ) : #NEWLINE# #INDENT# uni_print ( final_str , sys . stderr ) #NEWLINE# final_str = '' #NEWLINE# #UNINDENT# is_done = ( self . _total_files == self . _file_count ) #NEWLINE# if ( not is_done ) : #NEWLINE# #INDENT# final_str += self . _make_progress_bar ( ) #NEWLINE# #UNINDENT# if ( not ( self . _quiet or self . _only_show_errors ) ) : #NEWLINE# #INDENT# uni_print ( final_str ) #NEWLINE# self . _needs_newline = ( not final_str . endswith ( '\n' ) )