mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user