diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 20:30:10 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 20:30:10 (GMT) |
commit | e6f40ea4b668ae615b1f48461a4875d966b2915a (patch) | |
tree | 255fb0b9592f30b154ee4e10282253ee2669f6ef | |
parent | a2f9989c1a5451253d1e6e8508af422363c7e113 (diff) | |
download | cpython-e6f40ea4b668ae615b1f48461a4875d966b2915a.zip cpython-e6f40ea4b668ae615b1f48461a4875d966b2915a.tar.gz cpython-e6f40ea4b668ae615b1f48461a4875d966b2915a.tar.bz2 |
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.
-rw-r--r-- | Lib/distutils/command/install_scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py index 4044ba0..ceece1b 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) |