From b43f25971b82c2583cb295e0aaed23182f01ea62 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Fri, 15 Mar 2013 09:35:33 +0100 Subject: [PATCH] Use correct singular/plural of noun. --- build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index c322d3fd44..96df4454cf 100755 --- a/build.py +++ b/build.py @@ -506,7 +506,9 @@ def find_fixme(t): f.close() for filename in matches: - print ' %s has %d matches:' % (filename, len(matches[filename])) + num_matches = len(matches[filename]) + noun = 'matches' if num_matches > 1 else 'match' + print ' %s has %d %s:' % (filename, num_matches, noun) for match in matches[filename]: print ' %s' % (match,) print