Skip to content

Commit

Permalink
refactor: Drop legacy absolute_import
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Nov 3, 2023
1 parent 4e4abec commit a66dbbe
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 60 deletions.
2 changes: 0 additions & 2 deletions allauth/account/forms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from importlib import import_module

from django import forms
Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_ajax.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json

from django.conf import settings
Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_auth_backends.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from django.contrib.auth import get_user_model
from django.test.utils import override_settings

Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_change_email.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json
from unittest.mock import patch

Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_confirm_email.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from datetime import timedelta
from unittest.mock import Mock, patch

Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_logout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from django.contrib.auth import get_user_model
from django.core import validators
from django.test.client import Client
Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_ratelimit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from django.contrib.auth import get_user_model
from django.test.utils import override_settings
from django.urls import reverse
Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_reset_password.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json

from django.contrib.auth import get_user_model
Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_security.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from django.contrib.auth import get_user_model
from django.core import mail
from django.test.client import RequestFactory
Expand Down
2 changes: 0 additions & 2 deletions allauth/account/tests/test_signup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import django
from django import forms
from django.contrib.auth import get_user_model
Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/adapter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import warnings

from django.core.exceptions import (
Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/forms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from django import forms

from allauth.account.forms import BaseSignupForm
Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from django.conf import settings
from django.contrib.auth import authenticate, get_user_model
from django.contrib.sites.shortcuts import get_current_site
Expand Down
3 changes: 0 additions & 3 deletions allauth/socialaccount/providers/authentiq/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

import json

from django.test.client import RequestFactory
Expand Down
3 changes: 0 additions & 3 deletions allauth/socialaccount/providers/cilogon/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase

Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/providers/disqus/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from django.contrib.auth.models import User
from django.test.utils import override_settings

Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/providers/evernote/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from datetime import datetime

from allauth.socialaccount import app_settings
Expand Down
3 changes: 0 additions & 3 deletions allauth/socialaccount/providers/google/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

import json
from datetime import datetime, timedelta
from importlib import import_module
Expand Down
3 changes: 0 additions & 3 deletions allauth/socialaccount/providers/mailru/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase

Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/providers/oauth/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import logging

from django.urls import reverse
Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/providers/oauth2/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from datetime import timedelta
from requests import RequestException

Expand Down
4 changes: 0 additions & 4 deletions allauth/socialaccount/providers/odnoklassniki/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import

from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase

Expand Down
3 changes: 0 additions & 3 deletions allauth/socialaccount/providers/salesforce/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase

Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/providers/vk/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase

Expand Down
2 changes: 0 additions & 2 deletions allauth/socialaccount/providers/yandex/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase

Expand Down
3 changes: 0 additions & 3 deletions allauth/socialaccount/providers/ynab/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from requests.exceptions import HTTPError
from unittest.mock import patch

Expand Down

0 comments on commit a66dbbe

Please sign in to comment.