[Python-checkins] r53024 - sandbox/trunk/2to3/refactor.py

guido.van.rossum python-checkins at python.org
Wed Dec 13 23:45:53 CET 2006


Author: guido.van.rossum
Date: Wed Dec 13 23:45:52 2006
New Revision: 53024

Modified:
   sandbox/trunk/2to3/refactor.py
Log:
Correctly use singular if there was one error.


Modified: sandbox/trunk/2to3/refactor.py
==============================================================================
--- sandbox/trunk/2to3/refactor.py	(original)
+++ sandbox/trunk/2to3/refactor.py	Wed Dec 13 23:45:52 2006
@@ -257,7 +257,10 @@
             for file in self.files:
                 self.log_message(file)
         if self.errors:
-            self.log_message("There were %d errors", self.errors)
+            if self.errors == 1:
+                self.log_message("There was 1 error")
+            else:
+                self.log_message("There were %d errors", self.errors)
 
 
 def diff_texts(a, b, filename):


More information about the Python-checkins mailing list