Adapt fetch_wheels for python3

python3 default is to use utf8 encoded files. Wheels are binaries,
and should be read as such by default.

Change-Id: I467f41a62b6488ecf3f02874e6533fb63048905b
This commit is contained in:
Jean-Philippe Evrard 2019-03-11 11:54:42 +01:00
parent 19072929b1
commit 40a0c7fe68
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def main():
wheels = f.read()
if wheels.startswith('/'):
with open(wheels, 'r') as f:
with open(wheels, 'rb') as f:
data = f.read()
elif wheels.startswith('http'):
data = get_wheels(wheels)