summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-22 23:01:22 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-22 23:01:22 +0000
commit67154ad0a8b84de61bb07335150117507e2b7eef (patch)
tree1e3e4e89ef5d77de5e47497e4b0ee42efa1abfe0 /examples
parentd866a378dbc4645d224f06dfd41c5ca793690e81 (diff)
downloadpython-dmidecode-67154ad0a8b84de61bb07335150117507e2b7eef.tar.gz
python-dmidecode-67154ad0a8b84de61bb07335150117507e2b7eef.tar.xz
python-dmidecode-67154ad0a8b84de61bb07335150117507e2b7eef.zip
A more complete dmidecode example.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@165 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dmidump.py6
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)]