mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
a2f9989c1a
commit
e6f40ea4b6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue