next release is 3.0, not 2.4

This commit is contained in:
Min RK
2022-07-29 15:35:08 +02:00
parent 225ace636a
commit e4e4bf5ff4
8 changed files with 14 additions and 14 deletions

View File

@@ -336,7 +336,7 @@ class HubAuth(SingletonConfigurable):
@property
def oauth_scopes(self):
warnings.warn(
"HubAuth.oauth_scopes is deprecated in JupyterHub 2.4. Use .access_scopes"
"HubAuth.oauth_scopes is deprecated in JupyterHub 3.0. Use .access_scopes"
)
return self.access_scopes
@@ -352,7 +352,7 @@ class HubAuth(SingletonConfigurable):
def _default_scopes(self):
env_scopes = os.getenv('JUPYTERHUB_OAUTH_ACCESS_SCOPES')
if not env_scopes:
# deprecated name (since 2.4)
# deprecated name (since 3.0)
env_scopes = os.getenv('JUPYTERHUB_OAUTH_SCOPES')
if env_scopes:
return set(json.loads(env_scopes))