Skip to content

Commit cc2eb23

Browse files
committed
FIX wrong parameter name in deprecation warning
1 parent 7656498 commit cc2eb23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/datasets/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def load_files(container_path, description=None, categories=None,
157157
"""
158158
if charset is not None:
159159
warnings.warn("The charset parameter is deprecated as of version "
160-
"0.14 and will be removed in 0.16. Use encode instead.",
160+
"0.14 and will be removed in 0.16. "
161+
"Use encoding instead.",
161162
DeprecationWarning)
162163
encoding = charset
163164

0 commit comments

Comments
 (0)