mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Clean up module imports
This commit is contained in:
parent
a6d2b16294
commit
1013369ebe
2 changed files with 8 additions and 6 deletions
|
|
@ -20,7 +20,8 @@ class AppConfig(apps.AppConfig):
|
|||
from django.contrib.auth.views import LoginView
|
||||
from django.utils.decorators import method_decorator
|
||||
|
||||
from axes import signals
|
||||
from axes import signals # pylint: disable=unused-import,unused-variable
|
||||
|
||||
from axes.decorators import axes_dispatch
|
||||
from axes.decorators import axes_form_invalid
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from platform import python_version
|
||||
from sys import platform
|
||||
if python_version() < '3.4' and platform == 'win32':
|
||||
import win_inet_pton
|
||||
from socket import inet_pton, AF_INET6, error
|
||||
try:
|
||||
import win_inet_pton # pylint: disable=unused-import
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
from socket import error, inet_pton, AF_INET6
|
||||
|
||||
from django.core.cache import caches
|
||||
from django.utils import six
|
||||
|
|
|
|||
Loading…
Reference in a new issue