From a88fa5c07a210a67126bb3cc7333c89c95d114cc Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 26 May 2016 15:27:35 -0400 Subject: [PATCH] Remove mako_middleware_process_request, which doesn't cleanup after itself --- common/djangoapps/edxmako/tests.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/common/djangoapps/edxmako/tests.py b/common/djangoapps/edxmako/tests.py index 1b881adeee..8634916d5a 100644 --- a/common/djangoapps/edxmako/tests.py +++ b/common/djangoapps/edxmako/tests.py @@ -154,12 +154,3 @@ class MakoRequestContextTest(TestCase): the threadlocal REQUEST_CONTEXT.context. This is meant to run in CMS. """ self.assertIn("We're having trouble rendering your component", render_to_string("html_error.html", None)) - - -def mako_middleware_process_request(request): - """ - Initialize the global RequestContext variable - edxmako.middleware.requestcontext using the request object. - """ - mako_middleware = edxmako.middleware.MakoMiddleware() - mako_middleware.process_request(request)