%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/certbot/_internal/display/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/certbot/_internal/display/__pycache__/completer.cpython-312.pyc

�

M/�e
���dZddlZddlmZddlmZddlmZddlmZddlmZddlm	Z		ddl
Z
Gd	�d
�Zy#e$rddlm
cmcmZ
Y�wxYw)z8Provides Tab completion when prompting users for a path.�N)�
TracebackType)�Callable)�Iterator)�Literal)�Optional)�Typec�j�eZdZdZdd�Zdededeefd�Zdd�Z	d	ee
ed
eedeeddfd
�Z
y)�	Completera/Provides Tab completion when prompting users for a path.

    This class is meant to be used with readline to provide Tab
    completion for users entering paths. The complete method can be
    passed to readline.set_completer directly, however, this function
    works best as a context manager. For example:

    with Completer():
        raw_input()

    In this example, Tab completion will be available during the call to
    raw_input above, however, readline will be restored to its previous
    state when exiting the body of the with statement.

    �returnNc��|||y)N���selfs �E/usr/lib/python3/dist-packages/certbot/_internal/display/completer.py�__init__zCompleter.__init__"s������text�statec�r�|dk(rtj|dz�|_t|jd�S)a(Provides path completion for use with readline.

        :param str text: text to offer completions for
        :param int state: which completion to return

        :returns: possible completion for text or ``None`` if all
            completions have been returned
        :rtype: str

        r�*N)�glob�iglob�_iter�next)rrrs   r�completezCompleter.complete's0���A�:����D�3�J�/�D�J��D�J�J��%�%rc�j�tj�|_tj�|_tj
|j�tjd�tj�(dtjvrtjd�ytjd�y)Nz 	
;�libeditzbind ^I rl_completez
tab: complete)
�readline�
get_completer�_original_completer�get_completer_delims�_original_delims�
set_completerr�set_completer_delims�__doc__�parse_and_bindrs r�	__enter__zCompleter.__enter__6s|��#+�#9�#9�#;�� � (� =� =� ?������t�}�}�-��%�%�h�/����'�I��9I�9I�,I��#�#�$9�:��#�#�O�4r�unused_type�unused_value�unused_tracebackzLiteral[False]c��tj|j�tj|j�y)NF)rr$r"r#r )rr(r)r*s    r�__exit__zCompleter.__exit__Ds/��	�%�%�d�&;�&;�<����t�7�7�8�r)rN)�__name__�
__module__�__qualname__r%r�str�intrrr'r�
BaseExceptionrr,r
rrr
r
sg��� #�

&�S�
&��
&��#��
&�5��H�T�-�-@�$A��'�
�6��#+�M�#:��?O�rr
)r%r�typesr�typingrrrrrr�ImportError�(certbot._internal.display.dummy_readline�	_internal�display�dummy_readliner
r
rr�<module>r:sI��>��������@��
8�8��	�@�?�?�@�s�;�A�A

Zerion Mini Shell 1.0