mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
using log.warn for sys.stderr
This commit is contained in:
parent
ef660e8e50
commit
c7cd138bc2
2 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue