Skip to content

Commit 26b9da2

Browse files
committed
Make flake8 happy
1 parent 3739b69 commit 26b9da2

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

example/middleware.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
try:
22
from django.utils.deprecation import MiddlewareMixin
33
except ImportError:
4-
class MiddlewareMixin(object): pass
4+
class MiddlewareMixin(object):
5+
pass
56

67

78
class SetRemoteAddrFromForwardedFor(MiddlewareMixin):

example/wsgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
import os
11-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")
12-
1311
from django.core.wsgi import get_wsgi_application
12+
13+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")
1414
application = get_wsgi_application()

user_sessions/backends/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ def clear_expired(cls):
109109

110110

111111
# At bottom to avoid circular import
112-
from ..models import Session
112+
from ..models import Session # noqa: E402

user_sessions/middleware.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
try:
1313
from django.utils.deprecation import MiddlewareMixin
1414
except ImportError:
15-
class MiddlewareMixin(object): pass
15+
class MiddlewareMixin(object):
16+
pass
1617

1718

1819
class SessionMiddleware(MiddlewareMixin):

user_sessions/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ def get_decoded(self):
5555

5656

5757
# At bottom to avoid circular import
58-
from .backends.db import SessionStore
58+
from .backends.db import SessionStore # noqa: E402

0 commit comments

Comments
 (0)