Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/json.py @ 144:7e6ec99d5ff5
Allow comments as keys and filter them by default
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 13 Apr 2018 09:51:02 +0200 |
| parents | e84870359e1a |
| children | e2e8d21b4122 |
line wrap: on
line diff
--- a/configmix/json.py Mon Apr 09 09:35:04 2018 +0200 +++ b/configmix/json.py Fri Apr 13 09:51:02 2018 +0200 @@ -38,8 +38,6 @@ def load(filename, encoding="utf-8"): """Load a single JSON file with name `filename` and encoding `encoding`. - .. todo:: Allow comments in JSON files - """ with io.open(filename, mode="rt", encoding=encoding) as jsfp: #
