Skip to content

Commit

Permalink
Remove extra encoding parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rhorenov committed May 18, 2021
1 parent a302027 commit f9bdcb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poetry_dynamic_versioning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _apply_version(version: str, config: Mapping, pyproject_path: Path) -> str:
if not _state.cli_mode:
pyproject["tool"]["poetry-dynamic-versioning"]["enable"] = False

pyproject_path.write_text(tomlkit.dumps(pyproject, encoding="utf-8"))
pyproject_path.write_text(tomlkit.dumps(pyproject))

name = pyproject["tool"]["poetry"]["name"]

Expand Down Expand Up @@ -277,7 +277,7 @@ def _revert_version() -> None:
# so we re-enable it after we've temporarily disabled it.
pyproject["tool"]["poetry-dynamic-versioning"]["enable"] = True

pyproject_path.write_text(tomlkit.dumps(pyproject), encoding="utf-8")
pyproject_path.write_text(tomlkit.dumps(pyproject))
state.original_version = None

if state.substitutions:
Expand Down

0 comments on commit f9bdcb2

Please sign in to comment.