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

@ -141,7 +141,6 @@ def localize(dt: datetime) -> tzdatetime:
from ...core import stat, Stats
def stats() -> Stats:
from ...core.compat import fromisoformat
# TODO not sure what would be a good stat() for this module...
# might be nice to print some actual timezones?
# there aren't really any great iterables to expose
@ -150,6 +149,6 @@ def stats() -> Stats:
# note: deliberately take + 2 years, so the iterator exhausts. otherwise stuff might never get cached
# need to think about it...
for Y in range(1990, last):
dt = fromisoformat(f'{Y}-01-01 01:01:01')
dt = datetime.fromisoformat(f'{Y}-01-01 01:01:01')
yield localize(dt)
return stat(localized_years)