Skip to content

Commit

Permalink
Merge branch 'asgi-compat' of https://github.com/Archmonger/whitenoise
Browse files Browse the repository at this point in the history
…into asgi-compat
  • Loading branch information
Archmonger committed Jul 24, 2023
2 parents ed07496 + b40ff65 commit 3bff168
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ pytest
pytest-randomly
requests
aiofiles

3 changes: 3 additions & 0 deletions src/whitenoise/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from posixpath import basename
from urllib.parse import urlparse

import aiofiles
from aiofiles.base import AsyncBase
from asgiref.sync import async_to_sync
from asgiref.sync import iscoroutinefunction
from asgiref.sync import markcoroutinefunction
from django.conf import settings
Expand Down
2 changes: 1 addition & 1 deletion src/whitenoise/responders.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import asyncio
import errno
import os
import re
Expand All @@ -13,7 +14,6 @@
from wsgiref.headers import Headers

import aiofiles
import asyncio


class Response:
Expand Down

0 comments on commit 3bff168

Please sign in to comment.