Fall back to `uname -p`
()
| 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 | |
| 915 | def _unknown_as_blank(val): |
nothing calls this directly
no test coverage detected