Spade
Mini Shell
�
��^c@s9ddlZddlTdZdZddd��YZdS(i����N(t*tntdtdmidecodeXMLcBs2eZdZd�Zd�Zd�Zd�ZRS(s=Native
Python API for retrieving dmidecode information as
XMLcCs
t|_dS(N(tDMIXML_NODEtrestype(tself((s//usr/lib64/python2.7/site-packages/dmidecode.pyt__init__%scCs=|tkrt|_n!|tkr0t|_n td�tS(s�
Sets the result type of queries. The value can be DMIXML_NODE or
DMIXML_DOC,
which will return an libxml2::xmlNode or libxml2::xmlDoc object,
respectively
sInvalid result type value(RRt
DMIXML_DOCt TypeErrortTrue(Rttype((s//usr/lib64/python2.7/site-packages/dmidecode.pyt
SetResultType(s c Cs�|jtkr<tjdtddd|jd|��}nE|jtkrxtjdtddd|jd|��}n td�|S(s�
Queries the DMI data structure for a given section name. A section
can often contain several DMI type elements
t_objt
query_typetstresult_typetsectionsInvalid result type
value(RRtlibxml2txmlNodetxmlapiRtxmlDocR (Rtsectnametret((s//usr/lib64/python2.7/site-packages/dmidecode.pytQuerySection6s c Cs�|jtkr<tjdtddd|jd|��}nE|jtkrxtjdtddd|jd|��}n td�|S(sI
Queries the DMI data structure for a specific DMI type.
R
RttRttypeidsInvalid result type
value(RRRRRRRR (RttpidR((s//usr/lib64/python2.7/site-packages/dmidecode.pytQueryTypeIdIs (t__name__t
__module__t__doc__RRRR(((s//usr/lib64/python2.7/site-packages/dmidecode.pyR"s
((RtdmidecodemodRRR(((s//usr/lib64/python2.7/site-packages/dmidecode.pyt<module>s