-#! /usr/bin/env python
+#! /usr/bin/env python3
import argparse
close_all()
raise ValueError(
'Bad v-tag in file %s line %s: unknown v-tag %s, '
- 'expected "v", got %r' % (fname, counter_line, v))
+ 'expected "v"' % (fname, counter_line, v))
if tag == 'num_spam':
try:
counters['spam'][fname] = int(counter)
close_all()
raise ValueError(
'Bad tag in file %s line %s: unknown tag %s, '
- 'expected "num_spam" or "num_nonspam", got %r' % (
+ 'expected "num_spam" or "num_nonspam"' % (
fname, counter_line, tag))
counters_total = {'spam': 0, 'nonspam': 0}