From f2052253c5131a083df65a23005822eb51359182 2013-11-06 01:12:21 From: MinRK Date: 2013-11-06 01:12:21 Subject: [PATCH] fix ISO8601 re closes #4493 --- diff --git a/IPython/utils/jsonutil.py b/IPython/utils/jsonutil.py index bcdcd73..ee93a06 100644 --- a/IPython/utils/jsonutil.py +++ b/IPython/utils/jsonutil.py @@ -33,8 +33,8 @@ next_attr_name = '__next__' if py3compat.PY3 else 'next' #----------------------------------------------------------------------------- # timestamp formats -ISO8601="%Y-%m-%dT%H:%M:%S.%f" -ISO8601_PAT=re.compile(r"^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+)Z?([\+\-]\d{2}:?\d{2})?$") +ISO8601 = "%Y-%m-%dT%H:%M:%S.%f" +ISO8601_PAT=re.compile(r"^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{1,6})Z?([\+\-]\d{2}:?\d{2})?$") #----------------------------------------------------------------------------- # Classes and functions