Skip to content

Commit f9ae0f8

Browse files
committed
Merge pull request scikit-learn#5048 from marktab/fixlfw
Update lfw.py
2 parents e91af4c + 2186d93 commit f9ae0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/datasets/lfw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def check_fetch_lfw(data_home=None, funneled=True, download_if_missing=True):
8989
if not exists(target_filepath):
9090
if download_if_missing:
9191
url = BASE_URL + target_filename
92-
logger.warn("Downloading LFW metadata: %s", url)
92+
logger.warning("Downloading LFW metadata: %s", url)
9393
urllib.urlretrieve(url, target_filepath)
9494
else:
9595
raise IOError("%s is missing" % target_filepath)
@@ -98,7 +98,7 @@ def check_fetch_lfw(data_home=None, funneled=True, download_if_missing=True):
9898

9999
if not exists(archive_path):
100100
if download_if_missing:
101-
logger.warn("Downloading LFW data (~200MB): %s", archive_url)
101+
logger.warning("Downloading LFW data (~200MB): %s", archive_url)
102102
urllib.urlretrieve(archive_url, archive_path)
103103
else:
104104
raise IOError("%s is missing" % target_filepath)

0 commit comments

Comments
 (0)