Be consistent, use the shorter var
This commit is contained in:
parent
e2f815618b
commit
3c1c9d3179
|
@ -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(self.request.get_full_url(),
|
request = build_request(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(self.request.data.total)
|
self.result = sum(request.data.total)
|
||||||
else:
|
else:
|
||||||
self.result = 0
|
self.result = 0
|
||||||
except (IOError, SpeedtestUploadTimeout):
|
except (IOError, SpeedtestUploadTimeout):
|
||||||
self.result = sum(self.request.data.total)
|
self.result = sum(request.data.total)
|
||||||
|
|
||||||
|
|
||||||
class SpeedtestResults(object):
|
class SpeedtestResults(object):
|
||||||
|
|
Loading…
Reference in New Issue