Skip to content

Commit 1da435e

Browse files
author
boonhapus
committed
log -> _LOG
1 parent d865a90 commit 1da435e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cs_tools/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
from cs_tools import _compat
3333

34-
log = logging.getLogger(__name__)
34+
_LOG = logging.getLogger(__name__)
3535
_T = TypeVar("_T")
3636
_EVENT_LOOP: Optional[asyncio.AbstractEventLoop] = None
3737

@@ -106,7 +106,7 @@ def platform_tag() -> str:
106106
"""Return the platform tag for use in pip download."""
107107
try:
108108
from pip._vendor.packaging.tags import platform_tags
109-
109+
110110
platform_tag = next(iter(platform_tags()))
111111
except Exception:
112112
_LOG.debug("Could not fetch platform tags from vendored pip.packaging, falling back to sysconfig.")
@@ -283,7 +283,7 @@ def create_dynamic_model(__tablename__: str, *, sample_row: dict[str, Any]) -> t
283283
py_type = type(value)
284284
sa_type = SQLA_DATA_TYPES[py_type]
285285
except KeyError:
286-
log.warning(f"{__tablename__}.{column_name} found no data type for '{py_type}', faling back to VARCHAR..")
286+
_LOG.warning(f"{__tablename__}.{column_name} found no data type for '{py_type}', faling back to VARCHAR..")
287287
sa_type = sa_types.Text
288288

289289
field_definitions[column_name] = Annotated[py_type, Field(None, sa_column=Column(type_=sa_type))]

0 commit comments

Comments
 (0)