Revert "Be consistent, use the shorter var"

This reverts commit 3c1c9d3179.
This commit is contained in:
Matt Martz 2017-04-25 10:52:40 -05:00
parent 2c89c53a79
commit e982830350
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 # PY24 expects a string or buffer
# This also causes issues with Ctrl-C, but we will concede # This also causes issues with Ctrl-C, but we will concede
# for the moment that Ctrl-C on PY24 isn't immediate # for the moment that Ctrl-C on PY24 isn't immediate
request = build_request(request.get_full_url(), request = build_request(self.request.get_full_url(),
data=request.data.read(self.size)) data=request.data.read(self.size))
f = urlopen(request) f = urlopen(request)
f.read(11) f.read(11)
f.close() f.close()
self.result = sum(request.data.total) self.result = sum(self.request.data.total)
else: else:
self.result = 0 self.result = 0
except (IOError, SpeedtestUploadTimeout): except (IOError, SpeedtestUploadTimeout):
self.result = sum(request.data.total) self.result = sum(self.request.data.total)
class SpeedtestResults(object): class SpeedtestResults(object):