Skip to content

Commit

Permalink
Avoid a DeprecationWarning on Python 3.13+ (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok authored Jul 1, 2024
1 parent eb10a0d commit b47db6f
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 b47db6f

Please sign in to comment.