Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit 875f61e

Browse files
committed
Update comments
1 parent ff1736b commit 875f61e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchnlp/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _get_filename_from_url(url):
121121

122122

123123
def download_file_maybe_extract(url, directory, filename=None, extension=None, check_files=[]):
124-
""" Download the file at ``url`` to ``directory``.
124+
""" Download the file at ``url`` to ``directory``. Extract to ``directory`` if tar or zip.
125125
126126
Args:
127127
url (str): Url of file.
@@ -181,7 +181,7 @@ def _check_download(*filepaths):
181181

182182

183183
def download_files_maybe_extract(urls, directory, check_files=[]):
184-
""" Download the files at ``urls`` to ``directory``.
184+
""" Download the files at ``urls`` to ``directory``. Extract to ``directory`` if tar or zip.
185185
186186
Args:
187187
urls (str): Url of files.

0 commit comments

Comments
 (0)