Skip to content

Commit cdd432d

Browse files
committed
Sort imports with isort
1 parent 9722702 commit cdd432d

File tree

97 files changed

+135
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+135
-36
lines changed

djangobench/benchmarks/default_middleware/benchmark.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
from django.conf import global_settings, settings
2+
from django.core.handlers.wsgi import WSGIHandler, WSGIRequest
13
from django.test.client import Client, FakePayload
2-
from django.conf import global_settings
3-
from django.conf import settings
4-
from django.core.handlers.wsgi import WSGIRequest
5-
from django.core.handlers.wsgi import WSGIHandler
64

75
from djangobench.utils import run_comparison_benchmark
86

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.http import HttpResponse
22

3+
34
def index(request):
45
return HttpResponse('Hello World!')

djangobench/benchmarks/form_clean/benchmark.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django import forms
2+
23
from djangobench.utils import run_benchmark
34

45

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from djangobench.base_settings import *
1+
from djangobench.base_settings import *

djangobench/benchmarks/form_create/benchmark.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from django import forms
2+
23
from djangobench.utils import run_benchmark
34

5+
46
class BookForm(forms.Form):
57
title = forms.CharField(max_length=100)
68

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from djangobench.base_settings import *
1+
from djangobench.base_settings import *

djangobench/benchmarks/l10n_render/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from django.core.handlers.wsgi import WSGIRequest
55
from django.shortcuts import render_to_response
6-
from django.template import RequestContext
6+
from django.template import RequestContext
77
from django.test.client import Client
88

99
from djangobench.utils import run_benchmark

djangobench/benchmarks/locale_from_request/benchmark.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from djangobench.utils import run_benchmark
55

6-
76
LANGUAGES = (
87
# no language preference
98
'',

djangobench/benchmarks/model_creation/benchmark.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import time
2+
23
from djangobench.utils import run_benchmark
34

5+
46
def setup():
57
global Book
68
from model_creation.models import Book
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.db import models
22

3+
34
class Book(models.Model):
45
title = models.CharField(max_length=100)

0 commit comments

Comments
 (0)