#28796: reverse() coerces bytes in args/kwargs to str which adds "b" prefixes to
the ouput
-----------------------------+--------------------------------------
     Reporter:  Nick         |                    Owner:  nobody
         Type:  Bug          |                   Status:  new
    Component:  Core (URLs)  |                  Version:  2.0
     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 Tim Graham):

 * component:  Utilities => Core (URLs)


Comment:

 I completed the bisect by replacing `path(...)` with `url('(?P<token>.*)',
 ...` in the sample project. The commit where the behavior changed is
 301de774c21d055e9e5a7073e5bffdb52bc71079.

 The change in behavior is in `reverse()`. Args and kwargs have `str()`
 applied rather than `force_text()` which adds the b prefix.
 
https://github.com/django/django/commit/301de774c21d055e9e5a7073e5bffdb52bc71079
 #diff-b2f90a810a553411112f412de2a26617R424

 Do you consider that a bug, Claude?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28796#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/068.81f868fb186dffb6386f55ecf63a7d8f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to