mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-10-19 15:39:03 +02:00
.strip() not needed
This commit is contained in:
+1
-1
@@ -321,7 +321,7 @@ def getBestServer(servers):
|
|||||||
for i in range(0, 3):
|
for i in range(0, 3):
|
||||||
uh = urlopen('%s/latency.txt' % url)
|
uh = urlopen('%s/latency.txt' % url)
|
||||||
start = time.time()
|
start = time.time()
|
||||||
text = uh.read(9).strip()
|
text = uh.read(9)
|
||||||
total = time.time() - start
|
total = time.time() - start
|
||||||
if int(uh.code) == 200 and text == 'test=test'.encode():
|
if int(uh.code) == 200 and text == 'test=test'.encode():
|
||||||
cum.append(total)
|
cum.append(total)
|
||||||
|
|||||||
Reference in New Issue
Block a user