mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-10 19:43:01 +00:00
set stacklevel for oauth_scopes deprecation warning
so it's visible where the deprecated API is called
This commit is contained in:
@@ -349,7 +349,9 @@ class HubAuth(SingletonConfigurable):
|
||||
@property
|
||||
def oauth_scopes(self):
|
||||
warnings.warn(
|
||||
"HubAuth.oauth_scopes is deprecated in JupyterHub 3.0. Use .access_scopes"
|
||||
"HubAuth.oauth_scopes is deprecated in JupyterHub 3.0. Use .access_scopes",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
return self.access_scopes
|
||||
|
||||
|
Reference in New Issue
Block a user