Removed obsolete BaseHandler attributes.

Unused since d334f46b7a.
This commit is contained in:
Daniel Hepper 2018-05-27 17:21:27 +02:00 committed by Tim Graham
parent a6fb5b1fe0
commit 4e016d1372
2 changed files with 1 additions and 5 deletions

View File

@ -14,10 +14,8 @@ logger = logging.getLogger('django.request')
class BaseHandler:
_request_middleware = None
_view_middleware = None
_template_response_middleware = None
_response_middleware = None
_exception_middleware = None
_middleware_chain = None
@ -27,10 +25,8 @@ class BaseHandler:
Must be called after the environment is fixed (see __call__ in subclasses).
"""
self._request_middleware = []
self._view_middleware = []
self._template_response_middleware = []
self._response_middleware = []
self._exception_middleware = []
handler = convert_exception_to_response(self._get_response)

View File

@ -17,7 +17,7 @@ class HandlerTests(SimpleTestCase):
def test_middleware_initialized(self):
handler = WSGIHandler()
self.assertIsNotNone(handler._request_middleware)
self.assertIsNotNone(handler._middleware_chain)
def test_bad_path_info(self):
"""