Cleanup request classes' __repr__()
|Reported by:||julien||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As discussed in https://code.djangoproject.com/ticket/14614#comment:16, there are a few small inconsistencies and some duplicated code in HttpRequest's, ModPythonRequest's, and WSGIRequest's __repr__() methods, and since  also in ExceptionReporterFilter.get_request_repr (). The attached patch consolidates all that code into a single function. Note that I had to initialise the _post_parse_error attribute in the HttpRequest constructor, which should make sense since that attribute is used in some of HttpRequest's methods anyway.