Opened 5 years ago
Closed 5 years ago
#31428 closed Cleanup/optimization (fixed)
Allow empty message in management command stdout and stderr proxies.
Reported by: | François Freitag | Owned by: | François Freitag |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Django management commands wrap stdout and stderr in an OutputWrapper
that adds a \n
at the end of the text provided as the out
argument.
I suggest allowing self.stdout.write()
and self.stderr.write()
to add a newline to respectively stdout
and stderr
. Currently, it fails because msg
is a positional argument.
Change History (2)
comment:1 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Summary: | Allow empty message in management command stdout and stderr proxies → Allow empty message in management command stdout and stderr proxies. |
Triage Stage: | Unreviewed → Accepted |
Type: | New feature → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
I would rather focus on #21429, but we can accept this small cleanup.