Be consistent, use the shorter var

This commit is contained in:
Matt Martz 2017-04-25 10:07:34 -05:00
parent e2f815618b
commit 3c1c9d3179
1 changed files with 3 additions and 3 deletions

View File

@ -594,16 +594,16 @@ class HTTPUploader(threading.Thread):
# PY24 expects a string or buffer
# This also causes issues with Ctrl-C, but we will concede
# for the moment that Ctrl-C on PY24 isn't immediate
request = build_request(self.request.get_full_url(),
request = build_request(request.get_full_url(),
data=request.data.read(self.size))
f = urlopen(request)
f.read(11)
f.close()
self.result = sum(self.request.data.total)
self.result = sum(request.data.total)
else:
self.result = 0
except (IOError, SpeedtestUploadTimeout):
self.result = sum(self.request.data.total)
self.result = sum(request.data.total)
class SpeedtestResults(object):