diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 15:24:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 15:24:34 +0100 |
commit | 96385ea4e61156443e163b214726bb0933e887b0 (patch) | |
tree | 453fd95e7e4f927b9df70bf4a3aecef71971f1cd /test/functional/util | |
parent | 901f84c357c20dfc636233005aa941b83fd6f0d7 (diff) | |
download | rspamd-96385ea4e61156443e163b214726bb0933e887b0.tar.gz rspamd-96385ea4e61156443e163b214726bb0933e887b0.zip |
[Minor] Python...
Diffstat (limited to 'test/functional/util')
-rwxr-xr-x | test/functional/util/merge_coveralls.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/util/merge_coveralls.py b/test/functional/util/merge_coveralls.py index a05b36d87..ddc18690d 100755 --- a/test/functional/util/merge_coveralls.py +++ b/test/functional/util/merge_coveralls.py @@ -37,7 +37,7 @@ path_mapping = [ ] parser = argparse.ArgumentParser(description='') -parser.add_argument('--input', type=open, required=True, nargs='+', help='input files') +parser.add_argument('--input', type=str, required=True, nargs='+', help='input files') parser.add_argument('--output', type=str, required=True, help='output file)') parser.add_argument('--root', type=str, required=False, default="/rspamd/src/github.com/rspamd/rspamd", help='repository root)') parser.add_argument('--install-dir', type=str, required=False, default="/rspamd/install", help='install root)') @@ -111,12 +111,12 @@ if __name__ == '__main__': prepare_path_mapping() - with args.input[0].open(encoding='utf-8-sig') as fh: + with codecs.open(args.input[0], 'r', encoding='utf-8') as fh: j1 = json.load(fh) files = merge({}, j1) for i in range(1, len(args.input)): - with args.input[i].open(encoding='utf-8-sig') as fh: + with codecs.open(args.input[i], 'r', encoding='utf-8') as fh: j2 = json.load(fh) files = merge(files, j2) |