Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ os:
env:
matrix:
- PYTHON="3.8"
- PYTHON="3.9"
sudo: false

jobs:
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog for babelizer
0.3.5 (unreleased)
------------------

- Nothing changed yet.
- Removed use of the toml package, instead use tomlkit (#34)


0.3.4 (2020-12-16)
Expand Down
4 changes: 2 additions & 2 deletions babelizer/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import git
import isort
import pkg_resources
import toml
import tomlkit as toml
from cookiecutter.exceptions import OutputDirExistsException
from cookiecutter.main import cookiecutter

Expand Down Expand Up @@ -107,7 +107,7 @@ def blacken_file(filepath):
def prettify_python(path_to_repo):
path_to_repo = pathlib.Path(path_to_repo)
with open(path_to_repo / "babel.toml") as fp:
meta = toml.load(fp)
meta = toml.parse(fp.read())
module_name = meta["package"]["name"]

files_to_fix = [
Expand Down