Opened 6 years ago

Closed 6 years ago

#23522 closed Bug (fixed)

reverse() should return a text string, not a byte string

Reported by: Jon Dufresne Owned by: nobody
Component: Core (URLs) Version: master
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



As of now, reverse() returns a byte string. It should return a Unicode string (or text). URLs are used as text in many different contexts: HTML template, mail, JSON, etc.

Pull request to follow.

Change History (3)

comment:2 Changed 6 years ago by Claude Paroz

Has patch: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 6 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In c1ef234e310fb984ced37eac8c8b90f5b6155e5f:

Fixed #23522 -- Changed reverse() to return a Unicode string; not bytes

Note: See TracTickets for help on using tickets.
Back to Top