From 3154dae2cdbef5e89828dad4996fea949be7640c Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 8 Aug 2024 09:30:27 +0200 Subject: [PATCH] use simpler isoparse from dateutil to parse ISO8601 timestamps avoids more complex behavior of general parser, which we don't need since we are already specifying the general format spec --- jupyter_client/jsonutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_client/jsonutil.py b/jupyter_client/jsonutil.py index 2ba640fe..ae43a0f4 100644 --- a/jupyter_client/jsonutil.py +++ b/jupyter_client/jsonutil.py @@ -11,7 +11,7 @@ from datetime import datetime from typing import Any, Optional, Union -from dateutil.parser import parse as _dateutil_parse +from dateutil.parser import isoparse as _dateutil_parse from dateutil.tz import tzlocal next_attr_name = "__next__" # Not sure what downstream library uses this, but left it to be safe