summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-03-30 08:54:29 -0400
committerGitHub <noreply@github.com>2019-03-30 08:54:29 -0400
commite8774a74ccb27d9e1e4694426b5cabec4682f683 (patch)
treec29206e7a98f5993867ce5c38d3bcfc9710286ac
parentca67f39afa54e281705563834d3684e8b27844b6 (diff)
Fixed #30301 -- Removed OutputWrapper.__init__()'s style_func arg.
Unused since 533532302ae842c95cf7294ef6cd7f3e2bfaca65.
-rw-r--r--django/core/management/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management/base.py b/django/core/management/base.py
index 1f2d59b096..0c3a981290 100644
--- a/django/core/management/base.py
+++ b/django/core/management/base.py
@@ -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()