mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-11-21 15:20:50 +00:00
flake8 fixes
This commit is contained in:
parent
4ce4019331
commit
fedf42e838
1 changed files with 9 additions and 3 deletions
12
speedtest.py
12
speedtest.py
|
|
@ -1605,8 +1605,10 @@ class Speedtest(object):
|
|||
urls = []
|
||||
for size in self.config['sizes']['download']:
|
||||
for _ in range(0, self.config['counts']['download']):
|
||||
urls.append('%s/random%sx%s.jpg' %
|
||||
(os.path.dirname(self.best['url']), size, size))
|
||||
urls.append(
|
||||
'%s/random%sx%s.jpg' %
|
||||
(os.path.dirname(self.best['url']), size, size)
|
||||
)
|
||||
|
||||
request_count = len(urls)
|
||||
requests = []
|
||||
|
|
@ -1701,7 +1703,11 @@ class Speedtest(object):
|
|||
data.pre_allocate()
|
||||
requests.append(
|
||||
(
|
||||
build_request(self.best['url'], data, secure=self._secure),
|
||||
build_request(
|
||||
self.best['url'],
|
||||
data,
|
||||
secure=self._secure
|
||||
),
|
||||
size
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue