Skip to content

Commit

Permalink
fix logging calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 17, 2024
1 parent 7dd3e91 commit 331b027
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seedbank/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ def _parse_toml(file: Path) -> dict[str, Any]:
except ImportError:
from toml import loads

Check warning on line 28 in seedbank/_config.py

View workflow job for this annotation

GitHub Actions / Check Source Code

Import "toml" could not be resolved from source (reportMissingModuleSource)

_log.debug("parsing TOML from {}", file)
_log.debug("parsing TOML from %s", file)
return loads(file.read_text())


def _parse_yaml(file: Path) -> dict[str, Any]:
from yaml import SafeLoader, load

_log.debug("parsing YAML from {}", file)
_log.debug("parsing YAML from %s", file)
with file.open("r") as f:
return load(f, SafeLoader)


def _parse_json(file: Path) -> dict[str, Any]:
from json import loads

_log.debug("parsing JSON from {}", file)
_log.debug("parsing JSON from %s", file)
return loads(file.read_text())


Expand Down

0 comments on commit 331b027

Please sign in to comment.