Handle py3 compatibility for speedtest mini servers
This commit is contained in:
parent
478f9affdd
commit
b3f9a48cbb
|
@ -871,7 +871,7 @@ class Speedtest(object):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
data = f.read().strip()
|
data = f.read().strip().decode()
|
||||||
if (f.code == 200 and
|
if (f.code == 200 and
|
||||||
len(data.splitlines()) == 1 and
|
len(data.splitlines()) == 1 and
|
||||||
re.match('size=[0-9]', data)):
|
re.match('size=[0-9]', data)):
|
||||||
|
|
Loading…
Reference in New Issue