blob: 92730c03741c79370239a0ee6c7247b00519752c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
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(f"{n:>30}: {v!r}")
|