From 1d4e982b0733585ff46f4e8e3bff1975fc6c45ea Mon Sep 17 00:00:00 2001 From: Jeremy Leconte Date: Fri, 28 Jan 2022 16:19:39 +0100 Subject: [PATCH] Fix python3 errors in low_bandwidth_audio_test.py. This is causing errors on the ci: https://ci.chromium.org/p/webrtc/builders/perf/Perf%20Android32%20(M%20Nexus5)/3379 No-Presubmit: True Bug: webrtc:13607 Change-Id: Ice54db8b1405623e5d873cfd2795fbf5541ef727 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249789 Reviewed-by: Mirko Bonadei Reviewed-by: Christoffer Jansson Commit-Queue: Jeremy Leconte Cr-Commit-Position: refs/heads/main@{#35830} --- audio/test/low_bandwidth_audio_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/test/low_bandwidth_audio_test.py b/audio/test/low_bandwidth_audio_test.py index f2b7c09500..92aca16473 100755 --- a/audio/test/low_bandwidth_audio_test.py +++ b/audio/test/low_bandwidth_audio_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env vpython3 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license @@ -331,13 +331,13 @@ def main(): analyzer_results = analyzer.func(analyzer.executable, reference_file, degraded_file) - for metric, (value, units) in analyzer_results.items(): + for metric, (value, units) in list(analyzer_results.items()): hist = histograms.CreateHistogram(metric, units, [value]) user_story = generic_set.GenericSet([test_name]) hist.diagnostics[reserved_infos.STORIES.name] = user_story # Output human readable results. - print 'RESULT %s: %s= %s %s' % (metric, test_name, value, units) + print('RESULT %s: %s= %s %s' % (metric, test_name, value, units)) if args.remove: os.remove(reference_file)