urlfetcher: Open local files as binary
Needed for proper functioning on python3
This commit is contained in:
parent
15bd408570
commit
e90d728380
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue