def report_saved(report_stats):
    """Record the percent saved & print it."""
    if Settings.verbose:
        report = ''
        truncated_filename = truncate_cwd(report_stats.final_filename)

        report += '{}: '.format(truncated_filename)
        total = new_percent_saved(report_stats)
        if total:
            report += total
        else:
            report += '0%'
        if Settings.test:
            report += ' could be saved.'
        if Settings.verbose > 1:
            tools_report = ', '.join(report_stats.report_list)
            if tools_report:
                report += '\n\t' + tools_report
        print(report)
def report_saved ( report_stats ) : if Settings . verbose : report = '' truncated_filename = truncate_cwd ( report_stats . final_filename ) report += '{}: ' . format ( truncated_filename ) total = new_percent_saved ( report_stats ) if total : report += total else : report += '0%' if Settings . test : report += ' could be saved.' if Settings . verbose > 1 : tools_report = ', ' . join ( report_stats . report_list ) if tools_report : report += '\n\t' + tools_report print ( report )
Record the percent saved & print it.