Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Fix typo in warning in file_utils #4527

Merged
2 commits merged into from
Aug 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions allennlp/common/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _find_latest_cached(url: str, cache_dir: Union[str, Path]) -> Optional[str]:
continue
mtime = os.path.getmtime(path)
candidates.append((path, mtime))
# Sort candidates by modification time, neweste first.
# Sort candidates by modification time, newest first.
candidates.sort(key=lambda x: x[1], reverse=True)
if candidates:
return candidates[0][0]
Expand Down Expand Up @@ -382,7 +382,7 @@ def get_from_cache(url: str, cache_dir: Union[str, Path] = None) -> str:
# target resource, if it exists. We'll only throw an exception if we
# haven't cached the resource at all yet.
logger.warning(
"Connection error occured while trying to fetch ETag for %s. "
"Connection error occurred while trying to fetch ETag for %s. "
"Will attempt to use latest cached version of resource",
url,
)
Expand Down