Skip to content

Commit 13ed73b

Browse files
outsbartsynasius
authored andcommitted
Removed unused imports
1 parent df5d5a1 commit 13ed73b

File tree

12 files changed

+6
-12
lines changed

12 files changed

+6
-12
lines changed

oauth2_provider/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
The `compat` module provides support for backwards compatibility with older
33
versions of django and python..
44
"""
5-
5+
# flake8: noqa
66
from __future__ import unicode_literals
77

88
import django

oauth2_provider/compat_handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
# Django 1.9 drops the NullHandler since Python 2.7 includes it
23
try:
34
from logging import NullHandler
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# flake8: noqa
12
from .authentication import OAuth2Authentication
23
from .permissions import TokenHasScope, TokenHasReadWriteScope, TokenHasResourceScope

oauth2_provider/management/commands/cleartokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.core.management.base import BaseCommand, CommandError
1+
from django.core.management.base import BaseCommand
22
from ...models import clear_expired
33

44

oauth2_provider/tests/settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
DEBUG = True
42
TEMPLATE_DEBUG = DEBUG
53

oauth2_provider/tests/test_application_views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from __future__ import unicode_literals
22

3-
import mock
43
from django.core.urlresolvers import reverse
54
from django.test import TestCase
6-
from django.test.utils import override_settings
75

86
from ..models import get_application_model
97
from ..compat import get_user_model

oauth2_provider/tests/test_authorization_code.py

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

88
from django.test import TestCase, RequestFactory
99
from django.core.urlresolvers import reverse
10-
from django.test.utils import override_settings
1110
from django.utils import timezone
1211

1312
from ..compat import urlparse, parse_qs, urlencode, get_user_model

oauth2_provider/tests/test_decorators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
from datetime import timedelta
32

43
from django.test import TestCase, RequestFactory

oauth2_provider/tests/test_implicit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from __future__ import unicode_literals
22

3-
import mock
43

54
from django.test import TestCase, RequestFactory
65
from django.core.urlresolvers import reverse
76

87
from ..compat import urlparse, parse_qs, urlencode, get_user_model
98
from ..models import get_application_model
109
from ..settings import oauth2_settings
11-
from ..views import ProtectedResourceView, AuthorizationView
10+
from ..views import ProtectedResourceView
1211

1312

1413
Application = get_application_model()

oauth2_provider/tests/test_oauth2_backends.py

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

44
from django.test import TestCase, RequestFactory
5-
from django.test.utils import override_settings
65

76
from ..backends import get_oauthlib_core
87
from ..oauth2_backends import OAuthLibCore, JSONOAuthLibCore

0 commit comments

Comments
 (0)