Fixed #30301 -- Removed OutputWrapper.__init__()'s style_func arg.

Unused since 533532302a.
This commit is contained in:
Tim Graham 2019-03-30 08:54:29 -04:00 committed by GitHub
parent ca67f39afa
commit e8774a74cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class OutputWrapper(TextIOBase):
else:
self._style_func = lambda x: x
def __init__(self, out, style_func=None, ending='\n'):
def __init__(self, out, ending='\n'):
self._out = out
self.style_func = None
self.ending = ending
@ -355,7 +355,7 @@ class BaseCommand:
if options.get('stdout'):
self.stdout = OutputWrapper(options['stdout'])
if options.get('stderr'):
self.stderr = OutputWrapper(options['stderr'], self.stderr.style_func)
self.stderr = OutputWrapper(options['stderr'])
if self.requires_system_checks and not options.get('skip_checks'):
self.check()