Commit 18a2844b authored by Takuto Ikuta's avatar Takuto Ikuta Committed by LUCI CQ

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 <tikuta@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: 's avatarDavid Munro <davidmunro@google.com>
Commit-Queue: David Munro <davidmunro@google.com>
parent 653d7e6c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment