﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26548	HttpResponse.__str__ is missing on Python 3	Robert Rollins	nobody	"The HttpResponse class includes this block:

{{{
    if six.PY3:
        __bytes__ = serialize
    else:
        __str__ = serialize
}}}

Because __str__ is not defined when `six.PY3` is True, calling `str(response_object)` falls back to __repr__ on Python 3. However, __str__ is defined on Python 2, and it returns the full HTTP message.

It seems like bad idea to have the output of the ""convert to string"" action be different based on Python version, as it makes multi-version code difficult to implement and debug."	Bug	closed	HTTP handling	1.9	Normal	duplicate			Unreviewed	0	0	0	0	0	0
