diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 14:59:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 14:59:48 +0100 |
commit | 901f84c357c20dfc636233005aa941b83fd6f0d7 (patch) | |
tree | 325bb65fc10c027e58cf2f8cb688feb7cefa9678 /test/functional/util | |
parent | 1fa77c23ac5d47b5cc1df15a6901ddedcbd2ec41 (diff) | |
download | rspamd-901f84c357c20dfc636233005aa941b83fd6f0d7.tar.gz rspamd-901f84c357c20dfc636233005aa941b83fd6f0d7.zip |
[Minor] Fucking python
Diffstat (limited to 'test/functional/util')
-rwxr-xr-x | test/functional/util/merge_coveralls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/util/merge_coveralls.py b/test/functional/util/merge_coveralls.py index 291eb2ffa..a05b36d87 100755 --- a/test/functional/util/merge_coveralls.py +++ b/test/functional/util/merge_coveralls.py @@ -111,12 +111,12 @@ if __name__ == '__main__': prepare_path_mapping() - with codecs.open(args.input[0], 'r', 'utf-8-sig') as fh: + with args.input[0].open(encoding='utf-8-sig') as fh: j1 = json.load(fh) files = merge({}, j1) for i in range(1, len(args.input)): - with codecs.open(args.input[i], 'r', 'utf-8-sig') as fh: + with args.input[i].open(encoding='utf-8-sig') as fh: j2 = json.load(fh) files = merge(files, j2) |