misc: replace uses of pytz.utc with timezone.utc where it makes sense

This commit is contained in:
Dima Gerasimov 2023-06-09 03:04:54 +01:00 committed by karlicoss
parent c91534b966
commit c12224af74
9 changed files with 24 additions and 42 deletions

View file

@ -5,8 +5,7 @@ Just a demo module for testing and documentation purposes
from .core import Paths, PathIsh
from typing import Optional
from datetime import tzinfo
import pytz
from datetime import tzinfo, timezone
from my.config import demo as user_config
from dataclasses import dataclass
@ -16,7 +15,7 @@ from dataclasses import dataclass
class demo(user_config):
data_path: Paths
username: str
timezone: tzinfo = pytz.utc
timezone: tzinfo = timezone.utc
external: Optional[PathIsh] = None