Keep Python 3.9 compatibility for now / Revert "Fix more Python 3.12 warnings"

This reverts commit 294b3966b0.
This commit is contained in:
Raphael Michel
2024-05-22 09:02:20 +02:00
parent 294b3966b0
commit 86ddca15ca
3 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@
# License for the specific language governing permissions and limitations under the License.
import copy
from collections import defaultdict
from datetime import UTC, datetime, timedelta
from datetime import datetime, timedelta
from decimal import Decimal
from functools import wraps
from itertools import groupby
@@ -493,7 +493,7 @@ def iframe_entry_view_wrapper(view_func):
settings.LANGUAGE_COOKIE_NAME,
locale,
max_age=max_age,
expires=(datetime.now(UTC) + timedelta(seconds=max_age)).strftime('%a, %d-%b-%Y %H:%M:%S GMT'),
expires=(datetime.utcnow() + timedelta(seconds=max_age)).strftime('%a, %d-%b-%Y %H:%M:%S GMT'),
)
return resp