core: remove vendorized py37 isoformat code

This commit is contained in:
Sean Breckenridge 2022-01-27 09:54:59 -08:00 committed by karlicoss
parent 03dd1271f4
commit 7493770d4d
8 changed files with 7 additions and 146 deletions

View file

@ -24,7 +24,6 @@ from .query import (
ET,
)
from .compat import fromisoformat
from .common import isoparse
@ -74,7 +73,7 @@ def parse_datetime_float(date_str: str) -> float:
return ds_float
try:
# isoformat - default format when you call str() on datetime
return fromisoformat(ds).timestamp()
return datetime.fromisoformat(ds).timestamp()
except ValueError:
pass
try: