MCPcopy Index your code
hub / github.com/python/cpython / async_check_output

Function async_check_output

Android/android.py:445–456  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

443
444
445async def async_check_output(*args, **kwargs):
446 async with async_process(
447 *args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs
448 ) as process:
449 stdout, stderr = await process.communicate()
450 if process.returncode == 0:
451 return stdout.decode(*DECODE_ARGS)
452 else:
453 raise CalledProcessError(
454 process.returncode, args,
455 stdout.decode(*DECODE_ARGS), stderr.decode(*DECODE_ARGS)
456 )
457
458
459# Return a list of the serial numbers of connected devices. Emulators will have

Callers 2

list_devicesFunction · 0.85
find_pidFunction · 0.85

Calls 4

CalledProcessErrorClass · 0.90
async_processFunction · 0.85
communicateMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…