# HG changeset patch # User Franz Glasner # Date 1652987859 -7200 # Node ID 211288645f02c0916c8d6a71b7af55f99b2a0219 # Parent 64cf6710c0db4a87019b38105d2df6ef1ace16e0 For better TOML compatibility open TOML files with encoding="" diff -r 64cf6710c0db -r 211288645f02 CHANGES.txt --- a/CHANGES.txt Fri May 13 19:01:25 2022 +0200 +++ b/CHANGES.txt Thu May 19 21:17:39 2022 +0200 @@ -22,6 +22,9 @@ For better consistency: use `.getvarl_s()` instead of `.getvarl()` in the implementation of `__len__()` in jailed configurations. +- **[bugfix]** + For better TOML compatibility open TOML files with ``encoding=""``. + 0.20.5 (2022-03-07) ~~~~~~~~~~~~~~~~~~~ diff -r 64cf6710c0db -r 211288645f02 configmix/toml.py --- a/configmix/toml.py Fri May 13 19:01:25 2022 +0200 +++ b/configmix/toml.py Thu May 19 21:17:39 2022 +0200 @@ -34,5 +34,6 @@ encoded. """ - with io.open(u2fs(filename), mode="rt", encoding=encoding) as tfp: + with io.open( + u2fs(filename), mode="rt", encoding=encoding, newline="") as tfp: return toml.loads(tfp.read(), _dict=DictImpl)