mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-11 12:03:00 +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
|
@property
|
||||||
def oauth_scopes(self):
|
def oauth_scopes(self):
|
||||||
warnings.warn(
|
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
|
return self.access_scopes
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user