]> granicus.if.org Git - python/commitdiff
Fix bug in recent change to logging code.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 20:30:10 +0000 (20:30 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 20:30:10 +0000 (20:30 +0000)
mode is not computed in dry_run mode, so it can't be included in the
log message.

Lib/distutils/command/install_scripts.py

index 4044ba092b6a2ce8bdc55edc021e89402e05cdc1..ceece1b6bfda2d76b371e1386f8677b2a0857e82 100644 (file)
@@ -49,7 +49,7 @@ class install_scripts (Command):
             # all the scripts we just installed.
             for file in self.get_outputs():
                 if self.dry_run:
-                    log.info("changing mode of %s to %o", file, mode)
+                    log.info("changing mode of %s", file)
                 else:
                     mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
                     log.info("changing mode of %s to %o", file, mode)