Skip to content

Commit bd6af45

Browse files
committed
Instructions to delete old folder when moving files
1 parent 1b5112c commit bd6af45

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sklearn/datasets/_base.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ def get_data_home(data_home=None, *, use_default_location="deprecated") -> str:
103103
"- Linux/Unix: ~/.cache/scikit-learn\n"
104104
"- macOS: ~/Library/Caches/scikit-learn\n"
105105
"- Windows: ~/AppData/Local/scikit-learn\n\n"
106-
"To migrate your data, copy the contents of '~/scikit_learn_data' "
107-
"to the new location for your OS.",
106+
"To migrate your data:\n"
107+
"1. Copy the contents of '~/scikit_learn_data' to the new\n"
108+
" location for your OS\n"
109+
"2. Delete the old '~/scikit_learn_data' directory to properly\n"
110+
" use the new location",
108111
FutureWarning,
109112
)
110113
return old_default
@@ -116,8 +119,11 @@ def get_data_home(data_home=None, *, use_default_location="deprecated") -> str:
116119
"- Linux/Unix: ~/.cache/scikit-learn\n"
117120
"- macOS: ~/Library/Caches/scikit-learn\n"
118121
"- Windows: ~/AppData/Local/scikit-learn\n\n"
119-
"To migrate your data, copy the contents of '~/scikit_learn_data' "
120-
"to the new location for your OS.",
122+
"To migrate your data:\n"
123+
"1. Copy the contents of '~/scikit_learn_data' to the new\n"
124+
" location for your OS\n"
125+
"2. Delete the old '~/scikit_learn_data' directory to properly\n"
126+
" use the new location",
121127
FutureWarning,
122128
)
123129
return join(expanduser("~"), "scikit_learn_data")

0 commit comments

Comments
 (0)