From 4e016d137236d36d47462f63e8f7988f1ad6c12e Mon Sep 17 00:00:00 2001 From: Daniel Hepper Date: Sun, 27 May 2018 17:21:27 +0200 Subject: [PATCH] Removed obsolete BaseHandler attributes. Unused since d334f46b7a080fd3eb720141c19b37b10704a352. --- django/core/handlers/base.py | 4 ---- tests/handlers/tests.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index be2e90beaf..edc166fab5 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -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) diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py index adf34c5437..175a892618 100644 --- a/tests/handlers/tests.py +++ b/tests/handlers/tests.py @@ -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): """