Handle py3 compatibility for speedtest mini servers

This commit is contained in:
Matt Martz 2016-05-26 15:20:58 -05:00
parent 478f9affdd
commit b3f9a48cbb
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ class Speedtest(object):
except:
pass
else:
data = f.read().strip()
data = f.read().strip().decode()
if (f.code == 200 and
len(data.splitlines()) == 1 and
re.match('size=[0-9]', data)):