(original) (raw)
changeset: 211:921177a65386 user: Antoine Pitrou solipsis@pitrou.net date: Sat Sep 28 19:16:43 2013 +0200 files: perf.py description: Issue #19108: fix str/bytes mismatch when raising exception under Python 3 diff -r 07a8440b3987 -r 921177a65386 perf.py --- a/perf.py Sat Sep 28 19:13:04 2013 +0200 +++ b/perf.py Sat Sep 28 19:16:43 2013 +0200 @@ -103,7 +103,7 @@ stderr=subprocess.PIPE) out, err = subproc.communicate() if subproc.returncode != 0: - raise RuntimeError("Benchmark died: " + err) + raise RuntimeError("Child interpreter died: " + err.decode()) major = int(out.strip()) if major == 2: result = 'lib' /solipsis@pitrou.net