Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/install_scripts.py @ 23672:edc423940cd6 legacy-trunk
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.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Tue, 04 Jun 2002 20:30:10 +0000 |
| parents | ca87119255eb |
| children | 42bfc98d295b |
line wrap: on
line diff
--- a/Lib/distutils/command/install_scripts.py Tue Jun 04 20:26:44 2002 +0000 +++ b/Lib/distutils/command/install_scripts.py Tue Jun 04 20:30:10 2002 +0000 @@ -49,7 +49,7 @@ # 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)
