From: Jeremy Hylton Date: Tue, 4 Jun 2002 20:30:10 +0000 (+0000) Subject: Fix bug in recent change to logging code. X-Git-Tag: v2.3c1~5476 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6f40ea4b668ae615b1f48461a4875d966b2915a;p=python Fix bug in recent change to logging code. mode is not computed in dry_run mode, so it can't be included in the log message. --- diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py index 4044ba092b..ceece1b6bf 100644 --- a/Lib/distutils/command/install_scripts.py +++ b/Lib/distutils/command/install_scripts.py @@ -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)