flake8 fixes

This commit is contained in:
Matt Martz 2018-03-22 17:00:29 -05:00
parent 4ce4019331
commit fedf42e838
1 changed files with 9 additions and 3 deletions

View File

@ -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
) )
) )