From 327f37401669bbc1977775effd39d36a46517c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 1 Jul 2024 15:37:07 +0200 Subject: [PATCH] Backport PR #1248: Avoid a DeprecationWarning on Python 3.13+ --- ipykernel/jsonutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipykernel/jsonutil.py b/ipykernel/jsonutil.py index 6a463cf1..e45f06e5 100644 --- a/ipykernel/jsonutil.py +++ b/ipykernel/jsonutil.py @@ -26,7 +26,7 @@ # holy crap, strptime is not threadsafe. # Calling it once at import seems to help. -datetime.strptime("1", "%d") +datetime.strptime("2000-01-01", "%Y-%m-%d") # ----------------------------------------------------------------------------- # Classes and functions