Skip to content

Commit 7424778

Browse files
committed
Fix W291 flake8 warnings
1 parent e65609b commit 7424778

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

djangobench/benchmarks/default_middleware/benchmark.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
class RequestFactory(Client):
99
"""
1010
Class that lets you create mock Request objects for use in testing.
11-
11+
1212
Usage:
13-
13+
1414
rf = RequestFactory()
1515
get_request = rf.get('/hello/')
1616
post_request = rf.post('/submit/', {'foo': 'bar'})
17-
17+
1818
This class re-uses the django.test.client.Client interface, docs here:
1919
http://www.djangoproject.com/documentation/testing/#the-test-client
20-
21-
Once you have a request object you can pass it to any view function,
20+
21+
Once you have a request object you can pass it to any view function,
2222
just as if that view had been hooked up using a URLconf.
23-
23+
2424
Author: Simon (http://djangosnippets.org/users/simon/)
2525
djangosnippet URL: (http://djangosnippets.org/snippets/963/)
2626
"""
@@ -49,11 +49,11 @@ def request(self, **request):
4949
def setup():
5050
global req_factory, handler_default_middleware, handler_no_middleware
5151
req_factory = RequestFactory()
52-
52+
5353
settings.MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES
5454
handler_default_middleware = WSGIHandler()
5555
handler_default_middleware.load_middleware()
56-
56+
5757
settings.MIDDLEWARE_CLASSES = []
5858
handler_no_middleware = WSGIHandler()
5959
handler_no_middleware.load_middleware()
@@ -79,7 +79,7 @@ def benchmark_no_middleware():
7979

8080
run_comparison_benchmark(
8181
benchmark_default_middleware,
82-
benchmark_no_middleware,
82+
benchmark_no_middleware,
8383
setup=setup,
8484
migrate=False,
8585
meta={

djangobench/benchmarks/query_filter/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def benchmark():
1010
list(Book.objects.filter(id=1))
1111

1212
run_benchmark(
13-
benchmark,
13+
benchmark,
1414
setup=setup,
1515
meta={
1616
'description': 'A simple Model.objects.filter() call.',

djangobench/benchmarks/query_in_bulk/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def setup():
77

88
def benchmark():
99
global Book
10-
Book.objects.in_bulk([1])
10+
Book.objects.in_bulk([1])
1111

1212
run_benchmark(
1313
benchmark,

djangobench/benchmarks/query_raw/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def setup():
1212
kwargs = {}
1313
for j in range(1, 11):
1414
kwargs['field%s' % j] = 'foobar_%s_%s' % (i, j)
15-
MultiField(**kwargs).save()
15+
MultiField(**kwargs).save()
1616

1717
run_benchmark(
1818
benchmark,

djangobench/benchmarks/query_raw_deferred/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def setup():
1212
kwargs = {}
1313
for j in range(1, 11):
1414
kwargs['field%s' % j] = 'foobar_%s_%s' % (i, j)
15-
MultiField(**kwargs).save()
15+
MultiField(**kwargs).save()
1616

1717
run_benchmark(
1818
benchmark,

0 commit comments

Comments
 (0)