def show_statistics(self, statistics: 'Statistics') -> None:
    'Format and print the statistics.'
    for error_code in statistics.error_codes():
        stats_for_error_code = statistics.statistics_for(error_code)
        statistic = next(stats_for_error_code)
        count = statistic.count
        count += sum((stat.count for stat in stats_for_error_code))
        self._write(f'{count:<5} {error_code} {statistic.message}')
Format and print the statistics.
def show_statistics(self, statistics: 'Statistics') -> None:
    
    for error_code in statistics.error_codes():
        stats_for_error_code = statistics.statistics_for(error_code)
        statistic = next(stats_for_error_code)
        count = statistic.count
        count += sum((stat.count for stat in stats_for_error_code))
        self._write(f'{count:<5} {error_code} {statistic.message}')