Browse Source

chore(api): clean up import statements

Nils Wisiol 6 years ago
parent
commit
28f5668179

+ 1 - 2
api/desecapi/authentication.py

@@ -1,7 +1,6 @@
-from __future__ import unicode_literals
 import base64
 from rest_framework import exceptions, HTTP_HEADER_ENCODING
-from rest_framework.authentication import BaseAuthentication, get_authorization_header, authenticate
+from rest_framework.authentication import BaseAuthentication, get_authorization_header
 from desecapi.models import Token
 from rest_framework.authentication import TokenAuthentication as RestFrameworkTokenAuthentication
 

+ 1 - 1
api/desecapi/management/commands/sync-from-pdns.py

@@ -1,5 +1,5 @@
 from django.core.management import BaseCommand, CommandError
-from desecapi.models import Domain, RRset
+from desecapi.models import Domain
 
 
 class Command(BaseCommand):

+ 0 - 2
api/desecapi/tests/testdonations.py

@@ -1,8 +1,6 @@
-# coding: utf-8
 from rest_framework.reverse import reverse
 from rest_framework import status
 from rest_framework.test import APITestCase
-from desecapi.tests.utils import utils
 from django.core import mail
 
 

+ 1 - 1
api/desecapi/tests/testprivacychores.py

@@ -1,7 +1,7 @@
 from django.core.management import call_command
 from django.test import TestCase
 from django.utils import timezone
-from desecapi.models import User, MyUserManager
+from desecapi.models import User
 from .utils import utils
 from api import settings
 from datetime import timedelta