mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Fixed #23663 -- Initialize output streams for BaseCommand in __init__().
This helps with testability of management commands. Thanks to trac username daveoncode for the report and to Tim Graham and Claude Paroz for the reviews.
This commit is contained in:
@@ -22,7 +22,7 @@ class Command(BaseCommand):
|
||||
requires_system_checks = False
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(BaseCommand, self).__init__(*args, **kwargs)
|
||||
super(Command, self).__init__(*args, **kwargs)
|
||||
self.copied_files = []
|
||||
self.symlinked_files = []
|
||||
self.unmodified_files = []
|
||||
|
||||
Reference in New Issue
Block a user