Mercurial > hgrepos > Python > libs > ConfigMix
changeset 124:be6cdc9cb79c
Use keyword "mode" for file file mode
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 04 Apr 2018 10:12:04 +0200 |
| parents | 4218c66b9281 |
| children | c11dd36279d9 |
| files | configmix/json.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/json.py Wed Apr 04 10:11:36 2018 +0200 +++ b/configmix/json.py Wed Apr 04 10:12:04 2018 +0200 @@ -26,7 +26,7 @@ .. todo:: Use OrderedDict as default mapping implementation (Python 2.7+) """ - with io.open(filename, "rt", encoding=encoding) as jsfp: + with io.open(filename, mode="rt", encoding=encoding) as jsfp: decoder = json.decoder.JSONDecoder( parse_int=lambda n: int(n, 0), strict=False)
