diff options
-rwxr-xr-x | examples/dmidump.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/dmidump.py b/examples/dmidump.py index 01711b0..161da44 100755 --- a/examples/dmidump.py +++ b/examples/dmidump.py @@ -15,8 +15,4 @@ print "*** cache ***\n"; pprint(dmidecode.cache()) print "*** connector ***\n"; pprint(dmidecode.connector()) print "*** slot ***\n"; pprint(dmidecode.slot()) -for v in dmidecode.memory().values(): - if type(v) == dict and v['dmi_type'] == 17: - pprint(v['data']['Size']), - -pprint(dmidecode.type(3)) +_=[dmidecode.type(_) and pprint(dmidecode.type(_)) for _ in range(1,128)] |