Skip to content

Commit

Permalink
Update for tomli 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Aug 2, 2021
1 parent 5fd1ff2 commit 8325de0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.2.4 (in development)
-----------------------
- Update for tomli 1.2.0

v0.2.3 (2021-07-04)
-------------------
- Read TOML files in UTF-8
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Changelog
=========

v0.2.4 (in development)
-----------------------
- Update for tomli 1.2.0

v0.2.3 (2021-07-04)
-------------------
- Read TOML files in UTF-8
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ install_requires =
morecontext ~= 0.4
pydantic ~= 1.7
python-dotenv ~= 0.11
tomli ~= 1.0
tomli ~= 1.2
typing_extensions; python_version < "3.8"

[options.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion src/outgoing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
more information.
"""

__version__ = "0.2.3"
__version__ = "0.2.4.dev1"
__author__ = "John Thorvald Wodder II"
__author_email__ = "outgoing@varonathe.org"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/outgoing/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def from_config_file(
data: Any
try:
if configpath.suffix == ".toml":
with configpath.open("r", encoding="utf-8") as fp:
with configpath.open("rb") as fp:
data = tomli.load(fp)
elif configpath.suffix == ".json":
with configpath.open("r") as fp:
Expand Down

0 comments on commit 8325de0

Please sign in to comment.