X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Fsa-merge-all.py;fp=playbooks%2Fdebian%2Fsa-merge-all.py;h=2328c0ed8af50804091d3a742a3b344cfbeb2879;hb=3d695378e15bf0b773bd243e5f4fa8836414e85d;hp=c12911144d61a2e20cb7ee97ab3fb2deed6cf5bc;hpb=784030da5296854e557d14b9447b7bba5717844a;p=ansible.git diff --git a/playbooks/debian/sa-merge-all.py b/playbooks/debian/sa-merge-all.py index c129111..2328c0e 100755 --- a/playbooks/debian/sa-merge-all.py +++ b/playbooks/debian/sa-merge-all.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import argparse @@ -32,7 +32,7 @@ if __name__ == '__main__': 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) @@ -49,7 +49,7 @@ if __name__ == '__main__': 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}