From 8087d475f01bf40d51495ea57aee4b38458a910f Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Mon, 15 Apr 2024 00:12:42 -0700 Subject: [PATCH] Drop long deleted cookie_date (#2091) --- channels/sessions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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: """