#28121: force_text incorrectly handles SafeBytes under PY3
------------------------------------+--------------------------------------
Reporter: Thomas Achtemichuk | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by Thomas Achtemichuk):
* status: closed => new
* resolution: wontfix =>
Comment:
Tim,
Reopening as I didn't make clear in my initial report that the behavior
differs between PY3:
{{{
>>> type(force_text(SafeBytes(b'&')))
str
}}}
and PY2:
{{{
>>> type(force_text(SafeBytes(b'&')))
django.utils.safestring.SafeText
}}}
If this behavior is incorrect under PY2, let me know and I'll open another
ticket to address it. But it definitely seems one of the above is
incorrect.
--
Ticket URL: <https://code.djangoproject.com/ticket/28121#comment:5>
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.f21f613af80c9fbfd0c3e9aec2af96ac%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.