From e8774a74ccb27d9e1e4694426b5cabec4682f683 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 30 Mar 2019 08:54:29 -0400 Subject: [PATCH] Fixed #30301 -- Removed OutputWrapper.__init__()'s style_func arg. Unused since 533532302ae842c95cf7294ef6cd7f3e2bfaca65. --- django/core/management/base.py | 4 ++-- 1 file 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()