From 19f70b1d06f69dd1de6f6dfc328a570ea86fb437 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 4 Sep 2021 18:13:17 +1000 Subject: [PATCH] py3 fixes for segment_coverage --- segment_coverage/segment_coverage/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segment_coverage/segment_coverage/main.py b/segment_coverage/segment_coverage/main.py index dea070e..d64968e 100644 --- a/segment_coverage/segment_coverage/main.py +++ b/segment_coverage/segment_coverage/main.py @@ -231,7 +231,7 @@ class CoverageChecker(object): temp_path = '{}_{}.html'.format(path_prefix, uuid.uuid4()) final_path = '{}_coverage.html'.format(path_prefix) common.ensure_directory(temp_path) - with open(temp_path, 'wb') as f: + with open(temp_path, 'w') as f: f.write(html) os.rename(temp_path, final_path) self.logger.info('Coverage page for {} created'.format(quality))