From b27fdc7293fcb425124689c0d714774e7da11525 Mon Sep 17 00:00:00 2001 From: Jean-Benoist Leger Date: Sat, 4 Nov 2023 18:03:31 +0100 Subject: [PATCH] fix: remove appcontext which is removed in flask --- flask_cas/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/flask_cas/__init__.py b/flask_cas/__init__.py index 76e02c2..916c790 100644 --- a/flask_cas/__init__.py +++ b/flask_cas/__init__.py @@ -5,14 +5,6 @@ flask_cas.__init__ import flask from flask import current_app -# Find the stack on which we want to store the database connection. -# Starting with Flask 0.9, the _app_ctx_stack is the correct one, -# before that we need to use the _request_ctx_stack. -try: - from flask import _app_ctx_stack as stack -except ImportError: - from flask import _request_ctx_stack as stack - from . import routing from functools import wraps @@ -65,7 +57,7 @@ class CAS(object): app.teardown_request(self.teardown) def teardown(self, exception): - ctx = stack.top + pass @property def app(self):