diff --git a/channels/sessions.py b/channels/sessions.py index fa16ec99..0a4cadd2 100644 --- a/channels/sessions.py +++ b/channels/sessions.py @@ -10,14 +10,10 @@ from django.utils import timezone from django.utils.encoding import force_str from django.utils.functional import LazyObject +from django.utils.http import http_date from channels.db import database_sync_to_async -try: - from django.utils.http import http_date -except ImportError: - from django.utils.http import cookie_date as http_date - class CookieMiddleware: """