From cdd304f2c67b6a76b75eb26ddb3e7f8e7519351c Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Sun, 14 Apr 2024 18:52:29 -0700 Subject: [PATCH] Drop long deleted cookie_date --- 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: """