/usr/lib64/python3.9/site-packages/__pycache__
Edit: /usr/lib64/python3.9/site-packages/__pycache__/dmidecode.cpython-39.pyc (1861B)
a
àËuc…
ã @ s* d dl Z d dlT dZdZG dd„ dƒZdS )é N)Ú*ÚnÚdc @ s0 e Zd ZdZdd„ Zdd„ Zdd„ Zdd „ Zd
S )ÚdmidecodeXMLz=Native Python API for retrieving dmidecode information as XMLc C s
t | _d S )N)ÚDMIXML_NODEÚrestype)Úself© r ú//usr/lib64/python3.9/site-packages/dmidecode.pyÚ__init__% s zdmidecodeXML.__init__c C s, |t krt | _n|tkr t| _ntdƒ‚dS )zµ
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
úInvalid result type valueT)r r Ú
DMIXML_DOCÚ TypeError)r Útyper r r
Ú
SetResultType( s zdmidecodeXML.SetResultTypec C sT | j tkr$tjtd| j |d�d�}n,| j tkrHtjtd| j |d�d�}ntdƒ‚|S )z‰
Queries the DMI data structure for a given section name. A section
can often contain several DMI type elements
Ús)Ú
query_typeÚresult_typeÚsection©Z_objr ©r r Úlibxml2ZxmlNodeZxmlapir
ZxmlDocr )r ZsectnameÚretr r r
ÚQuerySection6 s
þ
þzdmidecodeXML.QuerySectionc C sT | j tkr$tjtd| j |d�d�}n,| j tkrHtjtd| j |d�d�}ntdƒ‚|S )zI
Queries the DMI data structure for a specific DMI type.
Út)r r Ztypeidr r r )r Ztpidr r r r
ÚQueryTypeIdI s
þ
þzdmidecodeXML.QueryTypeIdN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r r r r r
r " s
r )r Zdmidecodemodr r
r r r r r
Ú
s