diff --git a/tools_webrtc/perf/catapult_uploader.py b/tools_webrtc/perf/catapult_uploader.py index aae35ec656..c33ac89d0c 100644 --- a/tools_webrtc/perf/catapult_uploader.py +++ b/tools_webrtc/perf/catapult_uploader.py @@ -253,7 +253,7 @@ def _AddBuildInfo(histograms, options): def _DumpOutput(histograms, output_file): - with open(output_file, 'wb') as f: + with open(output_file, 'w') as f: json.dump(_ApplyHacks(histograms.AsDicts()), f, indent=4)