core: remove vendorized py37 isoformat code
This commit is contained in:
parent
03dd1271f4
commit
7493770d4d
8 changed files with 7 additions and 146 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue