diff --git a/src/datasets/inspect.py b/src/datasets/inspect.py index 5f8428a1783..cad7b611eff 100644 --- a/src/datasets/inspect.py +++ b/src/datasets/inspect.py @@ -264,7 +264,7 @@ def get_dataset_infos( if use_auth_token != "deprecated": warnings.warn( "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed in 3.0.0.\n" - f"You can remove this warning by passing 'token={use_auth_token}' instead.", + "You can remove this warning by passing 'token=' instead.", FutureWarning, ) token = use_auth_token @@ -407,7 +407,7 @@ def get_dataset_config_info( if use_auth_token != "deprecated": warnings.warn( "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed in 3.0.0.\n" - f"You can remove this warning by passing 'token={use_auth_token}' instead.", + "You can remove this warning by passing 'token=' instead.", FutureWarning, ) token = use_auth_token @@ -501,7 +501,7 @@ def get_dataset_split_names( if use_auth_token != "deprecated": warnings.warn( "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed in 3.0.0.\n" - f"You can remove this warning by passing 'token={use_auth_token}' instead.", + "You can remove this warning by passing 'token=' instead.", FutureWarning, ) token = use_auth_token diff --git a/src/datasets/load.py b/src/datasets/load.py index 2853e4444db..c2d320fa072 100644 --- a/src/datasets/load.py +++ b/src/datasets/load.py @@ -1801,7 +1801,7 @@ def load_dataset_builder( if use_auth_token != "deprecated": warnings.warn( "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed in 3.0.0.\n" - f"You can remove this warning by passing 'token={use_auth_token}' instead.", + "You can remove this warning by passing 'token=' instead.", FutureWarning, ) token = use_auth_token @@ -2088,7 +2088,7 @@ def load_dataset( if use_auth_token != "deprecated": warnings.warn( "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed in 3.0.0.\n" - f"You can remove this warning by passing 'token={use_auth_token}' instead.", + "You can remove this warning by passing 'token=' instead.", FutureWarning, ) token = use_auth_token