Opened 11 years ago

Closed 10 years ago

#5595 closed (fixed)

ModPythonRequest __repr__ is attempting to return a unicode object

Reported by: Gary Wilson Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


And this is causing the repr of a ModPythonRequest object to have backslashes escaped, which is causing newlines not to be interpreted (noticed in my server errors coming to me via email).

Attachments (1)

5595.diff (2.7 KB) - added by Gary Wilson 11 years ago.
made use of smart_str in ModPythonRequest repr

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Gary Wilson

Attachment: 5595.diff added

made use of smart_str in ModPythonRequest repr

comment:1 Changed 11 years ago by Gary Wilson

Has patch: set

I do need the unicode() calls for python2.3 compatibility, right?

comment:2 Changed 10 years ago by Jacob

Triage Stage: UnreviewedReady for checkin

Gary, if these tests pass feel free to check this in; looks fine to me. IIRC you're right about needing the unicode() calls but it doesn't hurt if they're extraneous.

comment:3 Changed 10 years ago by Gary Wilson

Resolution: fixed
Status: newclosed

(In [7200]) Fixed #5595 -- Made ModPythonRequest.__repr__ return a string instead of a unicode object. Fixes the printout of the request object in those server error e-mails I never get :)

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