Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6f40ea

Browse files
committed
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.
1 parent a2f9989 commit e6f40ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/command/install_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run (self):
4949
# all the scripts we just installed.
5050
for file in self.get_outputs():
5151
if self.dry_run:
52-
log.info("changing mode of %s to %o", file, mode)
52+
log.info("changing mode of %s", file)
5353
else:
5454
mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
5555
log.info("changing mode of %s to %o", file, mode)

0 commit comments

Comments
 (0)