HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib64/python3.9/site-packages/__pycache__/dmidecode.cpython-39.pyc
a

��uc�
�@s*ddlZddlTdZdZGdd�d�ZdS)�N)�*�n�dc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�dmidecodeXMLz=Native Python API for retrieving dmidecode information as XMLcCs
t|_dS)N)�DMIXML_NODE�restype)�self�r	�//usr/lib64/python3.9/site-packages/dmidecode.py�__init__%szdmidecodeXML.__init__cCs,|tkrt|_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)rr�
DMIXML_DOC�	TypeError)r�typer	r	r
�
SetResultType(szdmidecodeXML.SetResultTypecCsT|jtkr$tjtd|j|d�d�}n,|jtkrHtjtd|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�rr�libxml2ZxmlNodeZxmlapir
ZxmlDocr)rZsectname�retr	r	r
�QuerySection6s
�
�zdmidecodeXML.QuerySectioncCsT|jtkr$tjtd|j|d�d�}n,|jtkrHtjtd|j|d�d�}ntd��|S)zI
        Queries the DMI data structure for a specific DMI type.
        �t)rrZtypeidrrr)rZtpidrr	r	r
�QueryTypeIdIs
�
�zdmidecodeXML.QueryTypeIdN)�__name__�
__module__�__qualname__�__doc__rrrrr	r	r	r
r"s
r)rZdmidecodemodrr
rr	r	r	r
�<module>s