AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/rlcompleter.cpython-310.opt-2.pyc |
o 6��f� � @ s� d dl Z d dlZd dlZd dlZdgZG dd� d�Zdd� Zzd dlZW n ey1 dZ Y dS w e� e� j� e �dd� � d Z dS ) � N� Completerc @ s6 e Zd Zddd�Zdd� Zdd� Zdd � Zd d� ZdS ) r Nc C s: |rt |t�std��|d u rd| _d S d| _|| _d S )Nznamespace must be a dictionary� r )� isinstance�dict� TypeError�use_main_ns� namespace)�selfr � r �2/opt/alt/python310/lib64/python3.10/rlcompleter.py�__init__( s zCompleter.__init__c C s� | j rtj| _|�� s!|dkrtrt�d� t�� dS dS d S |dkr6d|v r0| � |�| _ n| �|�| _ z| j | W S tyF Y d S w )Nr � � �.) r �__main__�__dict__r �strip�_readline_available�readlineZinsert_textZ redisplay�attr_matches�matches�global_matches� IndexError)r �text�stater r r �completeC s( �zCompleter.completec C sJ t |�r#|d7 }zt�|�js|d7 }W |S W |S ty" Y |S w |S )N�(�))�callable�inspectZ signatureZ parameters� ValueError)r �val�wordr r r �_callable_postfixb s ���zCompleter._callable_postfixc C s� dd l }g }dh}t|�}|jD ]%}|d |� |kr6|�|� |dv r)|d }n|dvr1|d }|�|� q| jtjfD ]%}|�� D ]\}}|d |� |kra||vra|�|� |�| � ||�� qCq=|S )Nr �__builtins__> �finally�try�:> �False�else�break�None�pass�continue�True� ) �keyword�len�kwlist�add�appendr �builtinsr �itemsr# ) r r r0 r �seen�nr"