diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-31 07:22:29 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-31 07:22:29 (GMT) |
commit | dd917f84e3775596049e09746f32053c50b3d422 (patch) | |
tree | 5b59a563c228493069bcf00e166fba7cea8ebfef /Lib/distutils/cmd.py | |
parent | ee47e5cf8ad0e52e2c5291662b9b15c2ba8848ea (diff) | |
download | cpython-dd917f84e3775596049e09746f32053c50b3d422.zip cpython-dd917f84e3775596049e09746f32053c50b3d422.tar.gz cpython-dd917f84e3775596049e09746f32053c50b3d422.tar.bz2 |
Closes #27904: Improved logging statements to defer formatting until needed.
Diffstat (limited to 'Lib/distutils/cmd.py')
-rw-r--r-- | Lib/distutils/cmd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py index c89d5ef..b5d9dc3 100644 --- a/Lib/distutils/cmd.py +++ b/Lib/distutils/cmd.py @@ -329,8 +329,7 @@ class Command: # -- External world manipulation ----------------------------------- def warn(self, msg): - log.warn("warning: %s: %s\n" % - (self.get_command_name(), msg)) + log.warn("warning: %s: %s\n", self.get_command_name(), msg) def execute(self, func, args, msg=None, level=1): util.execute(func, args, msg, dry_run=self.dry_run) |