urlfetcher: Open local files as binary

Needed for proper functioning on python3
This commit is contained in:
Cole Robinson 2018-01-27 14:08:46 -05:00
parent 15bd408570
commit e90d728380
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class _LocalURLFetcher(_URLFetcher):
return os.path.exists(url)
def _grabber(self, url):
urlobj = open(url, "r")
urlobj = open(url, "rb")
size = os.path.getsize(url)
return urlobj, size