#27300: makemigrations --dry-run -v 3 on Python 3 writes byte string to stdout
-------------------------------------+-------------------------------------
Reporter: Markus Holtermann | Owner: Markus
| Holtermann
Type: Bug | Status: assigned
Component: Core (Management | Version: 1.10
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):
* easy: 1 => 0
* stage: Unreviewed => Accepted
Comment:
The fact that `MigrationWriter.as_string` is returning a bytestring is
IMHO a violation of the general principle of `decode` as soon as possible,
`encode` as late as possible, which is a good rule to follow regarding
string handling. I'd rather see a patch that removes the final
`encode("utf8")` in the `as_string` method.
--
Ticket URL: <https://code.djangoproject.com/ticket/27300#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.636cd8b1b43a05db44855893f4a394b0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.