forked from floodsung/Deep-Learning-Papers-Reading-Roadmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed download.py (Empty file downloads, encoding errors)
Fixed the following errors - 1. Python defaulting to ASCII encoding instead of Unicode. Set global encoding to 'utf-8' 2. Sript downloading 0kb empty FILE objects. Some files being generated contained ":", which is a restricted character in filenames on Windows and MacOS and was truncating filenames before the extension, added to the replacements list in clean_text. 3. Download failures. Used the requests library to improve success rates of downloads, which seemed to work a bit better.
- Loading branch information
1 parent
063b7f4
commit a44ce12
Showing
1 changed file
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters