From 282b4f122430db02354f2dee563237ff87f8a65a Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 22 Apr 2022 20:47:58 +0200 Subject: [PATCH] restore warn_disabled_authorization as deprecated no-op --- jupyter_server/auth/utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/jupyter_server/auth/utils.py b/jupyter_server/auth/utils.py index 86d57070a8..999d2f0d7e 100644 --- a/jupyter_server/auth/utils.py +++ b/jupyter_server/auth/utils.py @@ -63,3 +63,14 @@ def match_url_to_resource(url, regex_mapping=None): pattern = re.compile(regex) if pattern.fullmatch(url): return auth_resource + + +def warn_disabled_authorization(): + """DEPRECATED, does nothing""" + import warnings + + warnings.warn( + "jupyter_server.auth.utils.warn_disabled_authorization is deprecated", + DeprecationWarning, + stacklevel=2, + )