Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/gi/overrides/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/gi/overrides/__pycache__/Gio.cpython-310.pyc
o

��T`YI�@s�ddlZddlmZmZddlmZmZmZddlm	Z	ddl
mZddlm
Z
ddlZe	d�ZgZGd	d
�d
ej�Zee�Ze�d
�d/dd�ZeGd
d�dej��Ze�d�eGdd�dej��Ze�d�eGdd�dej��Ze�d�eGdd�dej��Ze�d�eGdd�dej��Ze�d�eGdd�dej��Ze�d�eGdd�dej��Ze�d�Gdd�dej�Zee�Ze�d�Gdd�dej�Zee�Ze�d�Gdd �d ej�Zee�Ze�d �Gd!d"�d"ej�Zee�Ze�d"�Gd#d$�d$�ZGd%d&�d&ej �Z ee �Z e�d&�Gd'd(�d(ej!�Z!ee!�Z!e�d(�e
j"e
j#e
j$fd)k�r<d*d+�Z%nd,d+�Z%Gd-d.�d.ej&�Z&ee&�Z&e�d.�dS)0�N�)�wakeup_on_signal�register_sigint_fallback)�override�deprecated_init�wrap_list_store_sort_func)�get_introspection_module)�PyGIWarning)�GLib�Gioc@�eZdZdd�ZdS)�Applicationc	Os~t|j��0t��tjj|g|�Ri|��Wd�Wd�S1s(wYWd�dS1s8wYdS�N)r�quitrrr
�run)�self�args�kwargs�r�2/usr/lib/python3/dist-packages/gi/overrides/Gio.pyr's��"�zApplication.runN)�__name__�
__module__�__qualname__rrrrrr
%sr
cs��fdd�}|S)Ncslt�|�j|i|���j�dd�dd�j}�r)tjd|�ftdd�dStjd|ftdd�dS)N�.����z6%s shouldn't be instantiated directly, use %s instead.r)�
stacklevelz&%s shouldn't be instantiated directly.)�super�__init__r�rsplitr�warnings�warnr	)rrr�name��cls�insteadrr�new_init3s�
�
�z_warn_init.<locals>.new_initr)r$r%r&rr#r�
_warn_init1s
r'c@seZdZeejd�ZdS)�
VolumeMonitorzGio.VolumeMonitor.get()N)rrrr'rr(rrrrrr(Csr(c@�eZdZeej�ZdS)�DBusAnnotationInfoN)rrrr'rr*rrrrrr*L�r*c@r))�DBusArgInfoN)rrrr'rr,rrrrrr,Tr+r,c@r))�DBusMethodInfoN)rrrr'rr-rrrrrr-\r+r-c@r))�DBusSignalInfoN)rrrr'rr.rrrrrr.dr+r.c@r))�DBusInterfaceInfoN)rrrr'rr/rrrrrr/lr+r/c@r))�DBusNodeInfoN)rrrr'rr0rrrrrr0tr+r0c@seZdZddd�ZdS)�	ActionMapNcsNzt|�Wntytd��w		d��fdd�	}|D]}||�qdS)a�
        The add_action_entries() method is a convenience function for creating
        multiple Gio.SimpleAction instances and adding them to a Gio.ActionMap.
        Each action is constructed as per one entry.

        :param list entries:
            List of entry tuples for add_action() method. The entry tuple can
            vary in size with the following information:

                * The name of the action. Must be specified.
                * The callback to connect to the "activate" signal of the
                  action. Since GLib 2.40, this can be None for stateful
                  actions, in which case the default handler is used. For
                  boolean-stated actions with no parameter, this is a toggle.
                  For other state types (and parameter type equal to the state
                  type) this will be a function that just calls change_state
                  (which you should provide).
                * The type of the parameter that must be passed to the activate
                  function for this action, given as a single GLib.Variant type
                  string (or None for no parameter)
                * The initial state for this action, given in GLib.Variant text
                  format. The state is parsed with no extra type information, so
                  type tags must be added to the string if they are necessary.
                  Stateless actions should give None here.
                * The callback to connect to the "change-state" signal of the
                  action. All stateful actions should provide a handler here;
                  stateless actions should not.

        :param user_data:
            The user data for signal connections, or None
        zentries must be iterableNcs�|rtj�|�std||f��tj�|�}nd}|dur:tj�d|dd�}tj�	|||�}|dur9|�
d|��n|durFtd||f��tj||d�}|durX|�
d|����|�dS)NzfThe type string '%s' given as the parameter type for action '%s' is not a valid GVariant type string. zchange-statezDStateless action '%s' should give None for 'change_state', not '%s'.)r"�parameter_type�activate)
r
�VariantType�string_is_valid�	TypeError�new�Variant�parser�SimpleAction�new_stateful�connect�
ValueError�
add_action)r"r3r2�state�change_state�variant_parameter�
variant_state�action�r�	user_datarr�_process_action�s.�
���z5ActionMap.add_action_entries.<locals>._process_action)NNNN)�iterr6)r�entriesrErF�entryrrDr�add_action_entries}s ��
�zActionMap.add_action_entriesr)rrrrJrrrrr1|sr1c@s eZdZdd�Zdd�ZeZdS)�FileEnumeratorcCs|Srr�rrrr�__iter__�szFileEnumerator.__iter__cCs|�d�}|dur|St�r)�	next_file�
StopIteration)r�	file_inforrr�__next__�s
zFileEnumerator.__next__N)rrrrMrQ�nextrrrrrK�s	rKc@r)�MenuItemcCs(|D]\}}}|�|t�||��qdSr)�set_attribute_valuer
r8)r�
attributesr"�
format_string�valuerrr�
set_attribute�s�zMenuItem.set_attributeN)rrrrXrrrrrS�srSc@s\eZdZdZeejjdd�Zdd�Zdd�Z	dd	�Z
d
d�ZeZdd
�Z
dd�Zdd�ZdS)�Settingsz0Provide dictionary-like access to GLib.Settings.)�schema�path�backend)�	arg_namescCs||��vSr��	list_keys�r�keyrrr�__contains__��zSettings.__contains__cCst|���Sr)�lenr_rLrrr�__len__�rczSettings.__len__ccs�|��D]}|VqdSrr^r`rrrrM�s��zSettings.__iter__cCsdS)NTrrLrrr�__bool__�szSettings.__bool__cCs$||vrtd|f��|�|���S)N�unknown key: %r)�KeyError�	get_value�unpackr`rrr�__getitem__szSettings.__getitem__cCs8||vrtd|f��|�|�}|�d���}|�d�}|dkr5|�d���}|�d�s.J�|dd�}n[|dkr`|�d����d�sEJ�|�d��d���}|��}||vr_td||f��n0|dkr�|�d�}|�d���}|��\}	}
||	ks~||
kr�td	||	|
f��ntd
t	|���|�
|t�||��dS)Nrgrr�type�a�enumz$value %s is not an allowed enum (%s)�rangezvalue %s not in range (%s - %s)z'Cannot handle allowed type range class )
rh�	get_range�get_child_value�
get_string�get_type_string�
startswithrjr=�NotImplementedError�str�	set_valuer
r8)rrarWro�type_�v�type_str�allowed�tuple_�min_�max_rrr�__setitem__s6

�
��zSettings.__setitem__cC�|��Srr^rLrrr�keys(�z
Settings.keysN)rrr�__doc__rrrYrrbrerMrf�__nonzero__rkrr�rrrrrY�s�!rYc@s4eZdZdZdd�Zdd�Zdd�Zedd	��Zd
S)�_DBusProxyMethodCallz1Helper class to implement DBusProxy method calls.cCs||_||_dSr)�
dbus_proxy�method_name)rr�r�rrrr3s
z_DBusProxyMethodCall.__init__c
Csz|\}}}z|�|�}Wn%ty1t��dd�\}}	|r(|||	|�YdS|||	|�YdSw|||�|�|�dS)Nr)�call_finish�	Exception�sys�exc_info�_unpack_result)
r�obj�resultrE�result_callback�error_callback�real_user_data�ret�etype�errr�__async_result_handler7s
��	z+_DBusProxyMethodCall.__async_result_handlerc	Os�|r|d}|dd�}t|t�std|��nd}t�|t|��}d|vrK|d|�d�|�d�f}|j�|j	||�dd�|�d	d
�d|j
|�dS|j�|j	||�dd�|�d	d
�d�}|�|�S)Nrrz6first argument must be the method signature string: %rz()�result_handler�
error_handlerrE�flags�timeoutr)
�
isinstancervr6r
r8�tuple�getr��callr��*_DBusProxyMethodCall__async_result_handler�	call_syncr�)rrr�	signature�arg_variantrEr�rrr�__call__Fs.
���

�
z_DBusProxyMethodCall.__call__cCs4|��}t|�dkr|d}|St|�dkrd}|S)z?Convert a D-BUS return variant into an appropriate return valuerrN)rjrd)�klassr�rrrr�cs�z#_DBusProxyMethodCall._unpack_resultN)	rrrr�rr�r��classmethodr�rrrrr�0sr�c@seZdZdZdd�ZdS)�	DBusProxya$Provide comfortable and pythonic method calls.

    This marshalls the method arguments into a GVariant, invokes the
    call_sync() method on the DBusProxy object, and unmarshalls the result
    GVariant back into a Python tuple.

    The first argument always needs to be the D-Bus signature tuple of the
    method call. Example:

      proxy = Gio.DBusProxy.new_sync(...)
      result = proxy.MyMethod('(is)', 42, 'hello')

    The exception are methods which take no arguments, like
    proxy.MyMethod('()'). For these you can omit the signature and just write
    proxy.MyMethod().

    Optional keyword arguments:

    - timeout: timeout for the call in milliseconds (default to D-Bus timeout)

    - flags: Combination of Gio.DBusCallFlags.*

    - result_handler: Do an asynchronous method call and invoke
         result_handler(proxy_object, result, user_data) when it finishes.

    - error_handler: If the asynchronous call raises an exception,
      error_handler(proxy_object, exception, user_data) is called when it
      finishes. If error_handler is not given, result_handler is called with
      the exception object as result instead.

    - user_data: Optional user data to pass to result_handler for
      asynchronous calls.

    Example for asynchronous calls:

      def mymethod_done(proxy, result, user_data):
          if isinstance(result, Exception):
              # handle error
          else:
              # do something with result

      proxy.MyMethod('(is)', 42, 'hello',
          result_handler=mymethod_done, user_data='data')
    cCs
t||�Sr)r�)rr"rrr�__getattr__�s
zDBusProxy.__getattr__N)rrrr�r�rrrrr�ss,r�c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�	ListModelcsrt|t�r�fdd�t|�t����D�St|t�r7|dkr$|t��7}|dkr*t���|�}|dur5t�|St�)Ncsg|]}��|��qSr)�get_item)�.0�irLrr�
<listcomp>�sz)ListModel.__getitem__.<locals>.<listcomp>r)	r��slicero�indicesrd�int�
IndexErrorr�r6)rrar�rrLrrk�s
 

zListModel.__getitem__cCsD|��j}t||�std|j|jf��|D]	}||krdSqdS)N�Expected type %s.%sTF)�
get_item_type�pytyper�r6rr)r�itemr�r�rrrrb�s

��zListModel.__contains__cCr�r)�get_n_itemsrLrrrre�r�zListModel.__len__ccs$�tt|��D]}|�|�VqdSr)rordr�)rr�rrrrM�s��zListModel.__iter__N)rrrrkrbrerMrrrrr��s

r�)r�9rcCs,|�||g�t|�D]}|�||�qdSr)�splice�reversed�insert)r�position�
n_removals�	additionsryrrr�_list_store_splice�s�r�cCs|�|||�dSr)r�)rr�r�r�rrrr��scs8eZdZ�fdd�Z�fdd�Zdd�Zdd�Z�ZS)	�	ListStorecs t|�}tt|�j|g|�R�Sr)rrr��sort)r�compare_funcrE��	__class__rrr��szListStore.sortcs"t|�}tt|�j||g|�R�Sr)rrr��
insert_sorted)rr�r�rEr�rrr��s
��zListStore.insert_sortedcCs�t|t�rI|�t|��\}}}|dkr!t||t||d�g�dS|dkr5t||dt||d�g�dStt|||�dd�D]}|�|�q?dSt|t	�rk|dkrX|t|�7}|dksb|t|�krdt
�|�|�dSt�)NrrrT)�reverse)r�r�r�rdr��max�sortedro�remover�r�r6)rra�start�stop�stepr�rrr�__delitem__�s 
 �
zListStore.__delitem__cCsvt|t�r�|��j}g}|D]}t||�std|j|jf��|�|�q|�t	|��\}}}|dkrAt
||t||d�|�dStt
|||��}	t	|	�t	|�krSt�|dkrlt
||dt||d�|ddd��dSt|	|�D]\}
}t
||
d|g�qqdSt|t�r�|dkr�|t	|�7}|dks�|t	|�kr�t�|��j}t||�s�td|j|jf��t
||d|g�dSt�)Nr�rrr)r�r�r�r�r6rr�appendr�rdr�r��listror=�zipr�r�)rrarWr��	valuelistryr�r�r�r�r�rrrr�sP


��� ��


��zListStore.__setitem__)rrrr�r�r�r�
__classcell__rrr�rr��s
r�r)'r �_ossighelperrr�	overridesrrr�moduler�gir	�
gi.repositoryr
r�r�__all__r
r�r'r(r*r,r-r.r/r0r1rKrSrYr�r�r��
MAJOR_VERSION�
MINOR_VERSION�
MICRO_VERSIONr�r�rrrr�<module>sv








J


D
C1
#

I

Spamworldpro Mini