From 18a2844b5391577c12c9befffea3db69c95f8b91 Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Mon, 24 Jan 2022 05:03:38 +0000 Subject: [PATCH] ninjalog_uploader: do not use capture_output and text capture_output and text args are not available in Python3.6. Bug: 1290210 Change-Id: Id3c70ad456c5ca56df9935d64229f599d7aae4b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3406721 Commit-Queue: Takuto Ikuta Auto-Submit: Takuto Ikuta Reviewed-by: David Munro Commit-Queue: David Munro --- ninjalog_uploader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ninjalog_uploader.py b/ninjalog_uploader.py index fa19693d2..426ce9e10 100755 --- a/ninjalog_uploader.py +++ b/ninjalog_uploader.py @@ -40,8 +40,8 @@ ALLOWLISTED_CONFIGS = ('symbol_level', 'use_goma', 'is_debug', def IsGoogler(): """Check whether this user is Googler or not.""" p = subprocess.run('goma_auth info', - capture_output=True, - text=True, + stdout=subprocess.PIPE, + universal_newlines=True, shell=True) if p.returncode != 0: return False