HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/virtualenv/run/plugin/__pycache__/base.cpython-310.pyc
o

3�h0�@sZddlmZddlZddlmZddlmZdZGdd�d�ZGdd	�d	e�Z	d	dgZ
dS)
�)�annotationsN)�OrderedDict)�entry_points�c@s,eZdZdZdZedd��Zedd��ZdS)�PluginLoaderNcCsNtjdks	tdkrtdd�|��j|d�D��Stdd�|���|i�D��S)N)��
)r�cs��|]
}|j|��fVqdS�N��name�load��.0�err�E/usr/local/lib/python3.10/dist-packages/virtualenv/run/plugin/base.py�	<genexpr>��z0PluginLoader.entry_points_for.<locals>.<genexpr>)�groupcsr
rrrrrrrr)�sys�version_info�importlib_metadata_versionrr�select�get��cls�keyrrr�entry_points_forszPluginLoader.entry_points_forcCstjdur	t�t_tjSr)r�
_ENTRY_POINTSrrrrrrs
zPluginLoader.entry_points)	�__name__�
__module__�__qualname__�_OPTIONSr�classmethodr�staticmethodrrrrrr
s
rc@sBeZdZddd�Zedd��Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�ComponentBuilder�return�NonecCs<||_||_d|_||_|j|d�|_|�|t|j��dS)N)�title)�interpreterr
�_impl_class�possible�add_argument_group�parser�add_selector_arg_parse�list)�selfr*r.r
r,rrr�__init__szComponentBuilder.__init__cCs|jdur|�|�|_|jSr)r#rrrrr�options$s
zComponentBuilder.optionscCst�r)�NotImplementedError)r1r
�choicesrrrr/*sz'ComponentBuilder.add_selector_arg_parsecCsHt||j�}||jvrd|j��}t|��|j||_|�||j�|S)NzNo implementation for )�getattrr
r,r*�RuntimeErrorr+�populate_selected_argparse�app_data)r1r3�selected�msgrrr�handle_selected_arg_parse-s
z*ComponentBuilder.handle_selected_arg_parsecCs.d|j�d|��|j_|j�|j|j|�dS)Nzoptions for � )r
r.�descriptionr+�add_parser_argumentsr*)r1r:r9rrrr86sz+ComponentBuilder.populate_selected_argparsecCs|�||j�Sr)r+r*)r1r3rrr�create:szComponentBuilder.createN)r'r()
r r!r"r2r$r3r/r<r8r@rrrrr&s

	r&)�
__future__rr�collectionsr�importlib.metadatarrrr&�__all__rrrr�<module>s$�