Skip to content

Commit e7a5192

Browse files
committed
Clean up imports
1 parent 883109e commit e7a5192

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

pulp_rust/app/views.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,28 @@
33

44
from rest_framework.views import APIView
55
from rest_framework.viewsets import ViewSet
6-
from rest_framework.renderers import BrowsableAPIRenderer, JSONRenderer, TemplateHTMLRenderer
76
from rest_framework.response import Response
8-
from rest_framework.decorators import api_view
9-
from rest_framework.exceptions import NotAcceptable, Throttled
7+
from rest_framework.exceptions import Throttled
108
from django.core.exceptions import ObjectDoesNotExist
119
from django.shortcuts import redirect
12-
from datetime import datetime, timezone, timedelta
1310

14-
from django.contrib.sessions.models import Session
15-
from django.db import transaction
16-
from django.db.utils import DatabaseError
1711
from django.http.response import (
1812
Http404,
1913
HttpResponseNotFound,
20-
HttpResponseForbidden,
21-
HttpResponseBadRequest,
22-
StreamingHttpResponse,
2314
HttpResponse,
2415
)
2516
from drf_spectacular.utils import extend_schema
2617
from dynaconf import settings
27-
from itertools import chain
28-
from packaging.utils import canonicalize_name
29-
from urllib.parse import urljoin, urlparse, urlunsplit
3018
from pathlib import PurePath
19+
from urllib import urljoin
3120

32-
from pulpcore.plugin.viewsets import OperationPostponedResponse
33-
from pulpcore.plugin.tasking import dispatch
34-
from pulpcore.plugin.util import get_domain, get_url
21+
from pulpcore.plugin.util import get_domain
3522

3623
from pulp_rust.app.models import RustDistribution, RustRepository, RustContent
3724
from pulp_rust.app.serializers import (
3825
IndexRootSerializer,
3926
RustContentSerializer,
4027
)
41-
from pulp_rust.app import tasks
4228

4329
log = logging.getLogger(__name__)
4430

0 commit comments

Comments
 (0)