From edf8448274d96afa0efa71aa69ecc3f3e07c4139 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 23 Aug 2013 09:45:09 -0500 Subject: [PATCH] .strip() not needed --- speedtest_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index dfecb84..d61a21c 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -321,7 +321,7 @@ def getBestServer(servers): for i in range(0, 3): uh = urlopen('%s/latency.txt' % url) start = time.time() - text = uh.read(9).strip() + text = uh.read(9) total = time.time() - start if int(uh.code) == 200 and text == 'test=test'.encode(): cum.append(total)