Skip to content

Commit

Permalink
restore warn_disabled_authorization as deprecated no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Apr 22, 2022
1 parent 9dd41ec commit 282b4f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jupyter_server/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 282b4f1

Please sign in to comment.