Dirk Mueller
13e427300b
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=115
23 lines
751 B
Diff
23 lines
751 B
Diff
From b47db6f082ea61e9688b4eca4e92529c1e0e6c45 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
Date: Mon, 1 Jul 2024 15:37:07 +0200
|
|
Subject: [PATCH] Avoid a DeprecationWarning on Python 3.13+ (#1248)
|
|
|
|
---
|
|
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
|