Skip to content

Commit

Permalink
Backport PR ipython#1248: Avoid a DeprecationWarning on Python 3.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok authored and meeseeksmachine committed Jul 1, 2024
1 parent 1e62d48 commit 327f374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipykernel/jsonutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 327f374

Please sign in to comment.