From dd917f84e3775596049e09746f32053c50b3d422 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Wed, 31 Aug 2016 08:22:29 +0100 Subject: Closes #27904: Improved logging statements to defer formatting until needed. --- Lib/distutils/cmd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/distutils/cmd.py') diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py index c89d5efc45..b5d9dc387d 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) -- cgit v1.2.1