py3 fixes for segment_coverage

pull/224/head
Mike Lang 3 years ago committed by Mike Lang
parent ac917409e4
commit 19f70b1d06

@ -231,7 +231,7 @@ class CoverageChecker(object):
temp_path = '{}_{}.html'.format(path_prefix, uuid.uuid4()) temp_path = '{}_{}.html'.format(path_prefix, uuid.uuid4())
final_path = '{}_coverage.html'.format(path_prefix) final_path = '{}_coverage.html'.format(path_prefix)
common.ensure_directory(temp_path) common.ensure_directory(temp_path)
with open(temp_path, 'wb') as f: with open(temp_path, 'w') as f:
f.write(html) f.write(html)
os.rename(temp_path, final_path) os.rename(temp_path, final_path)
self.logger.info('Coverage page for {} created'.format(quality)) self.logger.info('Coverage page for {} created'.format(quality))

Loading…
Cancel
Save