aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/util
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-13 14:59:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-13 14:59:48 +0100
commit901f84c357c20dfc636233005aa941b83fd6f0d7 (patch)
tree325bb65fc10c027e58cf2f8cb688feb7cefa9678 /test/functional/util
parent1fa77c23ac5d47b5cc1df15a6901ddedcbd2ec41 (diff)
downloadrspamd-901f84c357c20dfc636233005aa941b83fd6f0d7.tar.gz
rspamd-901f84c357c20dfc636233005aa941b83fd6f0d7.zip
[Minor] Fucking python
Diffstat (limited to 'test/functional/util')
-rwxr-xr-xtest/functional/util/merge_coveralls.py4
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)