From e6df5842d471047afcb45595d95a39be549896e4 Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Fri, 29 Nov 2024 08:18:17 +0000 Subject: [PATCH] avoid deprecation warning for py313 (#320) --- nbclient/jsonutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbclient/jsonutil.py b/nbclient/jsonutil.py index bad0dae..0cd1236 100644 --- a/nbclient/jsonutil.py +++ b/nbclient/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