replace imports of fromisoformat
This commit is contained in:
parent
8a8bec332e
commit
9ab2a18412
3 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ from datetime import datetime, date, time, timezone
|
||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
from typing import Sequence, Tuple, Union, cast
|
from typing import Sequence, Tuple, Union, cast
|
||||||
|
|
||||||
from ..core.common import fromisoformat
|
from ..core.compat import fromisoformat
|
||||||
|
|
||||||
from my.config import location as user_config
|
from my.config import location as user_config
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import datetime
|
||||||
from typing import NamedTuple, Dict, Optional, Iterable
|
from typing import NamedTuple, Dict, Optional, Iterable
|
||||||
|
|
||||||
from .core import get_files
|
from .core import get_files
|
||||||
from .core.common import fromisoformat
|
from .core.compat import fromisoformat
|
||||||
|
|
||||||
from my.config import taplog as user_config
|
from my.config import taplog as user_config
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ def localize(dt: datetime) -> tzdatetime:
|
||||||
|
|
||||||
from ...core import stat, Stats
|
from ...core import stat, Stats
|
||||||
def stats() -> Stats:
|
def stats() -> Stats:
|
||||||
from ...core.common import fromisoformat
|
from ...core.compat import fromisoformat
|
||||||
# TODO not sure what would be a good stat() for this module...
|
# TODO not sure what would be a good stat() for this module...
|
||||||
# might be nice to print some actual timezones?
|
# might be nice to print some actual timezones?
|
||||||
# there aren't really any great iterables to expose
|
# there aren't really any great iterables to expose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue