MCPcopy Index your code
hub / github.com/RustPython/RustPython / from_subprocess

Method from_subprocess

Lib/platform.py:896–912  ·  view source on GitHub ↗

Fall back to `uname -p`

()

Source from the content-addressed store, hash-verified

894 return 'arm64'
895
896 def from_subprocess():
897 """
898 Fall back to `uname -p`
899 """
900 try:
901 import subprocess
902 except ImportError:
903 return None
904 try:
905 return subprocess.check_output(
906 ['uname', '-p'],
907 stderr=subprocess.DEVNULL,
908 text=True,
909 encoding="utf8",
910 ).strip()
911 except (OSError, subprocess.CalledProcessError):
912 pass
913
914
915def _unknown_as_blank(val):

Callers

nothing calls this directly

Calls 2

stripMethod · 0.45
check_outputMethod · 0.45

Tested by

no test coverage detected