AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/rlcompleter.cpython-312.opt-2.pyc |
� �Q�f� � �� � d dl Z d dlZd dlZd dlZd dlZd dlZdgZ G d� d� Zd� Z d dl Z e j e� j � e j d� � dZ y# e$ r dZ Y yw xY w)� N� Completerc �, � e Zd Zdd�Zd� Zd� Zd� Zd� Zy)r Nc �p � |rt |t � st d� �|�d| _ y d| _ || _ y )Nznamespace must be a dictionary� r )� isinstance�dict� TypeError�use_main_ns� namespace)�selfr s �2/opt/alt/python312/lib64/python3.12/rlcompleter.py�__init__zCompleter.__init__* s@ � � � �Z� �4�8��<�=�=� �� �D�� �D��&�D�N� c �~ � | j rt j | _ |j � s7|dk( r1t r*t j d� t j � yyy |dk( r1d|v r| j |� | _ n| j |� | _ | j | S # t $ r Y y w xY w)Nr � � �.) r �__main__�__dict__r �strip�_readline_available�readline�insert_text� redisplay�attr_matches�matches�global_matches� IndexError)r �text�states r �completezCompleter.completeE s� � � � ���%�.�.�D�N��z�z�|���z�&��(�(��.��&�&�(�����A�:��d�{�#�0�0��6���#�2�2�4�8��� ��<�<��&�&��� �� �s �!B0 �0 B<�;B<c � � t |� r,|dz } t j |� j s|dz }|S |S # t $ r Y |S w xY w)N�(�))�callable�inspect� signature� parameters� ValueError)r �val�words r �_callable_postfixzCompleter._callable_postfixd sX � ��C�=��C�K�D� ��(�(��-�8�8��C�K�D� ��t��� � ���� �s �$: � A�Ac �� � g }dh}t |� }t j t j z D ]@ }|d | |k( s�|j |� |dv r|dz }n |dvr|dz }|j |� �B | j t j fD ]Z }|j � D ]E \ }}|d | |k( s�||vs�|j |� |j | j ||� � �G �\ |S )N�__builtins__> �try�finally�:> �_�None�True�else�pass�False�break�continue� )�len�keyword�kwlist� softkwlist�add�appendr �builtinsr �itemsr, )r r r �seen�nr+ �nspacer* s r r zCompleter.global_matcheso s� � � � �������I���N�N�W�%7�%7�7�D��B�Q�x�4��������-�-��#�:�D�� "/� /� �#�:�D����t�$� 8� �~�~�x�'8�'8�9�F�#�\�\�^� ��c����8�t�#��D�(8��H�H�T�N��N�N�4�#9�#9�#�t�#D�E� ,� :� �r c �< � t j d|� }|sg S |j dd� \ }} t || j � }t t |� � }|j d� t |d� r5|j d� |j t |j � � g }t |� }|dk( rd} n |dk( rd} nd } |D ]� } | d | |k( s�| r| d |dz | k( r�|�d | ��}t t! t# |� | d � t$ � r|j'