Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
outsbart authored and synasius committed Mar 10, 2016
1 parent df5d5a1 commit 13ed73b
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion oauth2_provider/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The `compat` module provides support for backwards compatibility with older
versions of django and python..
"""

# flake8: noqa
from __future__ import unicode_literals

import django
Expand Down
1 change: 1 addition & 0 deletions oauth2_provider/compat_handlers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa
# Django 1.9 drops the NullHandler since Python 2.7 includes it
try:
from logging import NullHandler
Expand Down
1 change: 1 addition & 0 deletions oauth2_provider/ext/rest_framework/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# flake8: noqa
from .authentication import OAuth2Authentication
from .permissions import TokenHasScope, TokenHasReadWriteScope, TokenHasResourceScope
2 changes: 1 addition & 1 deletion oauth2_provider/management/commands/cleartokens.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.core.management.base import BaseCommand, CommandError
from django.core.management.base import BaseCommand
from ...models import clear_expired


Expand Down
2 changes: 0 additions & 2 deletions oauth2_provider/tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG

Expand Down
2 changes: 0 additions & 2 deletions oauth2_provider/tests/test_application_views.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from __future__ import unicode_literals

import mock
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings

from ..models import get_application_model
from ..compat import get_user_model
Expand Down
1 change: 0 additions & 1 deletion oauth2_provider/tests/test_authorization_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from django.test import TestCase, RequestFactory
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from django.utils import timezone

from ..compat import urlparse, parse_qs, urlencode, get_user_model
Expand Down
1 change: 0 additions & 1 deletion oauth2_provider/tests/test_decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
from datetime import timedelta

from django.test import TestCase, RequestFactory
Expand Down
3 changes: 1 addition & 2 deletions oauth2_provider/tests/test_implicit.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from __future__ import unicode_literals

import mock

from django.test import TestCase, RequestFactory
from django.core.urlresolvers import reverse

from ..compat import urlparse, parse_qs, urlencode, get_user_model
from ..models import get_application_model
from ..settings import oauth2_settings
from ..views import ProtectedResourceView, AuthorizationView
from ..views import ProtectedResourceView


Application = get_application_model()
Expand Down
1 change: 0 additions & 1 deletion oauth2_provider/tests/test_oauth2_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import mock

from django.test import TestCase, RequestFactory
from django.test.utils import override_settings

from ..backends import get_oauthlib_core
from ..oauth2_backends import OAuthLibCore, JSONOAuthLibCore
Expand Down
1 change: 1 addition & 0 deletions oauth2_provider/views/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa
from .base import AuthorizationView, TokenView, RevokeTokenView
from .application import ApplicationRegistration, ApplicationDetail, ApplicationList, \
ApplicationDelete, ApplicationUpdate
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ commands =

[flake8]
max-line-length = 120
ignore = F403,F401
exclude = docs,migrations,south_migrations,.tox

0 comments on commit 13ed73b

Please sign in to comment.