There was an error while loading. Please reload this page.
1 parent 775bef3 commit 12384a1Copy full SHA for 12384a1
sklearn/datasets/openml.py
@@ -6,7 +6,6 @@
6
from warnings import warn
7
from contextlib import closing
8
from functools import wraps
9
-import warnings
10
11
try:
12
# Python 3+
@@ -53,9 +52,7 @@ def wrapper():
53
52
except HTTPError:
54
raise
55
except Exception:
56
- warnings.warn(
57
- "Invalid cache, redownloading file",
58
- RuntimeWarning)
+ warn("Invalid cache, redownloading file", RuntimeWarning)
59
local_path = _get_local_path(openml_path, data_home)
60
if os.path.exists(local_path):
61
os.unlink(local_path)
0 commit comments