From: Vsevolod Stakhov Date: Sat, 13 Oct 2018 13:59:48 +0000 (+0100) Subject: [Minor] Fucking python X-Git-Tag: 1.8.1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=901f84c357c20dfc636233005aa941b83fd6f0d7;p=thirdparty%2Frspamd.git [Minor] Fucking python --- diff --git a/test/functional/util/merge_coveralls.py b/test/functional/util/merge_coveralls.py index 291eb2ffa9..a05b36d876 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)