From 3164173947d2afdb2932b3c0fccd2533eaab0a4b Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 12 Aug 2017 22:24:14 -0400 Subject: [PATCH] Switch some remaining encoding-related bits in test runner --- runtests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtests b/runtests index f5064a2..d2c5ea6 100755 --- a/runtests +++ b/runtests @@ -154,13 +154,13 @@ def _combine_coverprofiles(coverprofiles): tmp_args['encoding'] = 'utf-8' combined = tempfile.NamedTemporaryFile(**tmp_args) - combined.write(b'mode: set\n') + combined.write('mode: set\n') for coverprofile in coverprofiles: with codecs.open(coverprofile, 'r', 'utf-8') as infile: for line in infile.readlines(): if not line.startswith('mode: '): - combined.write(line.encode('utf-8')) + combined.write(line) combined.flush() name = combined.name