#30301: `django.core.management.base.OutputWrapper` discards the `style_func`
argument.
-------------------------------------+-------------------------------------
               Reporter:  Adam       |          Owner:  nobody
  Barnes                             |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:  Core       |        Version:  2.1
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 
https://github.com/django/django/blob/c296e55dc6a697c7e4d4be92b954633cda4a79b1/django/core/management/base.py#L99

 I would have assumed that line should read `self.style_func = style_func`.
 If it's correct to be discarding the provided `style_func` arg, and
 setting the attribute on `self` to be `None`, the argument shouldn't be
 provided.

 Of course, I'm not particularly familiar with this inner working of Django
 yet, so it's possible this is entirely intentional for some reason I don't
 yet know, in which case, a comment explaining the discarding wouldn't go
 amiss.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30301>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.4e14c73c4ebc97cbf33aa060737132d0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to