summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cmd.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-03-31 20:48:31 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-03-31 20:48:31 (GMT)
commitc7cd138bc2127079642ee8a3f2fa9d58c889dec0 (patch)
tree2af64c18845e30170cb22c79fbe90dc49503e24a /Lib/distutils/cmd.py
parentef660e8e50c607c8abcb02274decdcb6eff1d1b8 (diff)
downloadcpython-c7cd138bc2127079642ee8a3f2fa9d58c889dec0.zip
cpython-c7cd138bc2127079642ee8a3f2fa9d58c889dec0.tar.gz
cpython-c7cd138bc2127079642ee8a3f2fa9d58c889dec0.tar.bz2
using log.warn for sys.stderr
Diffstat (limited to 'Lib/distutils/cmd.py')
-rw-r--r--Lib/distutils/cmd.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py
index 012fca1..dfcbe23 100644
--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -352,9 +352,8 @@ class Command:
# -- External world manipulation -----------------------------------
def warn (self, msg):
- sys.stderr.write("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)