403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/prompt_toolkit/clipboard/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/prompt_toolkit/clipboard/__pycache__/base.cpython-311.pyc
�

�Ïc�	���dZddlmZmZddlmZmZddlmZgd�Z	Gd�d��Z
Gd�d	e�
��ZGd�de��ZGd
�de��Z
dS)z'
Clipboard for command line interface.
�)�ABCMeta�abstractmethod)�Callable�Optional)�
SelectionType)�	Clipboard�
ClipboardData�DummyClipboard�DynamicClipboardc�6�eZdZdZdejfdededdfd�ZdS)r	z{
    Text on the clipboard.

    :param text: string
    :param type: :class:`~prompt_toolkit.selection.SelectionType`
    ��text�type�returnNc�"�||_||_dS�N)rr)�selfrrs   �?/usr/lib/python3/dist-packages/prompt_toolkit/clipboard/base.py�__init__zClipboardData.__init__s����	���	�	�	�)�__name__�
__module__�__qualname__�__doc__r�
CHARACTERS�strr�rrr	r	sY���������M�4L�����$1��	
������rr	c�f�eZdZdZededdfd���Zdeddfd�Zd
d�Z	edefd	���Z
dS)rz�
    Abstract baseclass for clipboards.
    (An implementation can be in memory, it can share the X11 or Windows
    keyboard, or can be persistent.)
    �datarNc��dS)ze
        Set data to the clipboard.

        :param data: :class:`~.ClipboardData` instance.
        Nr�rrs  r�set_datazClipboard.set_data(����rrc�J�|�t|����dS)z?
        Shortcut for setting plain text on clipboard.
        N)r"r	�rrs  r�set_textzClipboard.set_text0s$��	
�
�
�m�D�)�)�*�*�*�*�*rc��dS)z7
        For Emacs mode, rotate the kill ring.
        Nr�rs r�rotatezClipboard.rotate6r#rc��dS)z(
        Return clipboard data.
        Nrr(s r�get_datazClipboard.get_data;r#r�rN)rrrrrr	r"rr&r)r+rrrrr!s�����������]��t�����^��+�S�+�T�+�+�+�+�����
��-�����^���rr)�	metaclassc�F�eZdZdZdeddfd�Zdeddfd�Zd
d�Zdefd	�Z	dS)r
zB
    Clipboard implementation that doesn't remember anything.
    rrNc��dSrrr!s  rr"zDummyClipboard.set_dataG����rrc��dSrrr%s  rr&zDummyClipboard.set_textJr0rc��dSrrr(s rr)zDummyClipboard.rotateMr0rc��t��Sr)r	r(s rr+zDummyClipboard.get_dataPs�����rr,)
rrrrr	r"rr&r)r+rrrr
r
Bs���������
�]�
�t�
�
�
�
�
�S�
�T�
�
�
�
�
�
�
�
��-������rr
c�~�eZdZdZdegeefddfd�Zdefd�Zde	ddfd�Z
d	eddfd
�Zd
d�Z
de	fd�ZdS)rz�
    Clipboard class that can dynamically returns any Clipboard.

    :param get_clipboard: Callable that returns a :class:`.Clipboard` instance.
    �
get_clipboardrNc��||_dSr)r5)rr5s  rrzDynamicClipboard.__init__[s��*����rc�F�|���p
t��Sr)r5r
r(s r�
_clipboardzDynamicClipboard._clipboard^s���!�!�#�#�7�~�'7�'7�7rrc�T�|����|��dSr)r8r"r!s  rr"zDynamicClipboard.set_dataa�&�������"�"�4�(�(�(�(�(rrc�T�|����|��dSr)r8r&r%s  rr&zDynamicClipboard.set_textdr:rc�R�|������dSr)r8r)r(s rr)zDynamicClipboard.rotategs$������� � �"�"�"�"�"rc�N�|������Sr)r8r+r(s rr+zDynamicClipboard.get_datajs����� � �)�)�+�+�+rr,)rrrrrrrrr8r	r"rr&r)r+rrrrrTs���������+�h�r�8�I�3F�/F�&G�+�D�+�+�+�+�8�I�8�8�8�8�)�]�)�t�)�)�)�)�)�S�)�T�)�)�)�)�#�#�#�#�,�-�,�,�,�,�,�,rrN)r�abcrr�typingrr�prompt_toolkit.selectionr�__all__r	rr
rrrr�<module>rBs����(�'�'�'�'�'�'�'�%�%�%�%�%�%�%�%�2�2�2�2�2�2�����
�
�
�
�
�
�
�
� �����'�����B�����Y����$,�,�,�,�,�y�,�,�,�,�,r

Youez - 2016 - github.com/yon3zu
LinuXploit