flake8 fixes
This commit is contained in:
parent
4ce4019331
commit
fedf42e838
12
speedtest.py
12
speedtest.py
|
@ -1605,8 +1605,10 @@ class Speedtest(object):
|
||||||
urls = []
|
urls = []
|
||||||
for size in self.config['sizes']['download']:
|
for size in self.config['sizes']['download']:
|
||||||
for _ in range(0, self.config['counts']['download']):
|
for _ in range(0, self.config['counts']['download']):
|
||||||
urls.append('%s/random%sx%s.jpg' %
|
urls.append(
|
||||||
(os.path.dirname(self.best['url']), size, size))
|
'%s/random%sx%s.jpg' %
|
||||||
|
(os.path.dirname(self.best['url']), size, size)
|
||||||
|
)
|
||||||
|
|
||||||
request_count = len(urls)
|
request_count = len(urls)
|
||||||
requests = []
|
requests = []
|
||||||
|
@ -1701,7 +1703,11 @@ class Speedtest(object):
|
||||||
data.pre_allocate()
|
data.pre_allocate()
|
||||||
requests.append(
|
requests.append(
|
||||||
(
|
(
|
||||||
build_request(self.best['url'], data, secure=self._secure),
|
build_request(
|
||||||
|
self.best['url'],
|
||||||
|
data,
|
||||||
|
secure=self._secure
|
||||||
|
),
|
||||||
size
|
size
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue