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

guido.van.rossum python-checkins at python.org
Fri Feb 9 17:25:05 CET 2007


Author: guido.van.rossum
Date: Fri Feb  9 17:25:05 2007
New Revision: 53696

Modified:
   sandbox/trunk/2to3/refactor.py
Log:
Make a log message about modified files unambiguous.


Modified: sandbox/trunk/2to3/refactor.py
==============================================================================
--- sandbox/trunk/2to3/refactor.py	(original)
+++ sandbox/trunk/2to3/refactor.py	Fri Feb  9 17:25:05 2007
@@ -262,10 +262,14 @@
             self.log_message("Wrote changes to %s", filename)
 
     def summarize(self):
+        if self.options.write:
+            were = "were"
+        else:
+            were = "should be"
         if not self.files:
-            self.log_message("No files were (or should be) modified.")
+            self.log_message("No files %s modified.", were)
         else:
-            self.log_message("Files that were (or should be) modified:")
+            self.log_message("Files that %s modified:", were)
             for file in self.files:
                 self.log_message(file)
         if self.errors:


More information about the Python-checkins mailing list