Sign in
chromium
/
external
/
github.com
/
nedbat
/
coveragepy
/
ae35c27be0062721c82f1967e9eb7d6f041e5258
/
.
/
lab
/
show_platform.py
blob: e4f4dc2a7a73e7078806cf911ae91c25e4a989fc [
file
] [
log
] [
blame
]
import
platform
import
types
for
n
in
dir
(
platform
):
if
n
.
startswith
(
"_"
):
continue
v
=
getattr
(
platform
,
n
)
if
isinstance
(
v
,
types
.
ModuleType
):
continue
if
callable
(
v
):
try
:
v
=
v
()
n
+=
"()"
except
:
continue
print
(
"%30s: %r"
%
(
n
,
v
))