Sign in
chromium
/
external
/
github.com
/
nedbat
/
coveragepy
/
coverage-4.3.2
/
.
/
lab
/
show_platform.py
blob: 76122d58ffe5e90133cb0114052d54303d0192a2 [
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
)