%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/gi/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/gi/__pycache__/__init__.cpython-312.pyc

�

��fz��:�ddlmZeee�ZddlZddlZddlZddlZdZdejvre
e��ddlmZddlm
Z
ddlmZdd	lmZdd
lmZiZej$j'ej$j)e�d�Zej.d�Zeejej<ej2e_ej4e_ej4ddZd
j8e�Zej<�Gd�dej.�Zede�ejd<ede�ejd<ede�ejd<ede�ejd<ede�ejd<d�Z d�Z!d�Z"d�Z#dd�Z$y)�)�extend_pathNz�When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183�gobject�)�_gi)�_API)�
Repository)�PyGIDeprecationWarning)�PyGIWarning�	overrideszgi._gobjectz{0}.{1}.{2}c��eZdZdZd�Zy)�_DummyStaticModuleNc� �tt���N)�AttributeError�_static_binding_error)�self�names  �-/usr/lib/python3/dist-packages/gi/__init__.py�__getattr__z_DummyStaticModule.__getattr__@s���2�3�3�)�__name__�
__module__�__qualname__�__path__r�rrr
r
=s���H�4rr
�glib�gio�gtkzgtk.gdkc��t|t�r)ttt|jd���}n|}|tkDrtd|�dt�d���y)N�.zpygobject's version z! required, and available version z is not recent enough)	�
isinstance�str�tuple�map�int�split�version_info�
ValueError�__version__)�version�version_lists  r�
check_versionr,KsP���'�3���S��g�m�m�C�&8�9�:�����l�"��*1�;�@�
�	
�#rc��tj�}t|t�st	d��||j�vr'|j
|�}||k7rt	d|�d|����|tvr$t||k7rt	d|�dt|����|j|�}|st	d|z��||vrt	d|�d|����|t|<y)a� Ensures the correct versions are loaded when importing `gi` modules.

    :param namespace: The name of module to require.
    :type namespace: str
    :param version: The version of module to require.
    :type version: str
    :raises ValueError: If module/version is already loaded, already required, or unavailable.

    :Example:

    .. code-block:: python

        import gi
        gi.require_version('Gtk', '3.0')

    z'Namespace version needs to be a string.z
Namespace z  is already loaded with version z already requires version zNamespace %s not availablez not available for version N)	r�get_defaultr!r"r(�get_loaded_namespaces�get_version�	_versions�enumerate_versions)�	namespacer*�
repository�loaded_version�available_versionss     r�require_versionr7Xs���"�'�'�)�J��g�s�#��B�C�C��J�4�4�6�6�#�/�/�	�:���W�$��'��9�:�
:��I��)�I�"6�'�"A��#�Y�y�%9�;�<�	<�$�6�6�y�A����5�	�A�B�B��(�(��#�W�.�/�	/�#�I�i�rc�L�|j�D]\}}t||��y)a3 Utility function for consolidating multiple `gi.require_version()` calls.

    :param requires: The names and versions of modules to require.
    :type requires: dict

    :Example:

    .. code-block:: python

        import gi
        gi.require_versions({'Gtk': '3.0', 'GLib': '2.0', 'Gio': '2.0'})
    N)�itemsr7)�requires�module_name�module_versions   r�require_versionsr=�s)��(0�~�~�'7�5�#��^���^�4�5rc�.�tj|d�Sr)r1�get)r3s r�get_required_versionr@�s���=�=��D�)�)rc��	tj||�tjd|�y#t$r}tt	|���d}~wwxYw)a�Ensure the given foreign marshaling module is available and loaded.

    :param str namespace:
        Introspection namespace of the foreign module (e.g. "cairo")
    :param symbol:
        Optional symbol typename to ensure a converter exists.
    :type symbol: str or None
    :raises: ImportError

    :Example:

    .. code-block:: python

        import gi
        import cairo
        gi.require_foreign('cairo')

    Nz
gi.repository)r�require_foreign�	Exception�ImportErrorr"�	importlib�
import_module)r3�symbol�es   rrBrB�sJ��&"����I�v�.����O�Y�7���"��#�a�&�!�!��"�s�/�	A�A�Ar)%�pkgutilrrr�sys�osrE�typesr�modulesrD�rrrr	r
r1�path�join�dirname�__file__�
_overridesdir�
ModuleType�_gobject�_PyGObject_API�pygobject_versionr'�formatr)�register_foreignr
r,r7r=r@rBrrr�<module>rZs���, ��x��*��
�	���R��
�����
�+�
,�,����'���	������R�W�W�_�_�X�6��D�
��5���M�*��!)����H�����,�,��� �2�2����$�$�Q�'��"�m�"�"�L�1�������4��)�)�4�)��1F�G����F��+�I�7L�M����I��'��/D�E����E��'��/D�E����E��+�I�7L�M����I��

�(#�V5�"*�8r

Zerion Mini Shell 1.0