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: David Munro <davidmunro@google.com>
Commit-Queue: David Munro <davidmunro@google.com>
changes/21/3406721/7
Takuto Ikuta 3 years ago committed by LUCI CQ
parent 653d7e6c4e
commit 18a2844b53

@ -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

Loading…
Cancel
Save