관리-도구
편집 파일: index_command.cpython-311.pyc
� �܋f� � � � d Z ddlZddlZddlZddlmZ ddlmZmZm Z ddl mZ ddlm Z ddlmZ erddlmZ dd lmZ ej e� � Zd e d fd�Z G d � de � � Zddded dfd�Z G d� dee� � ZdS )a& Contains command classes which may interact with an index / the network. Unlike its sister module, req_command, this module still uses lazy imports so commands which don't always hit the network (e.g. list w/o --outdated or --uptodate) don't need waste time importing PipSession and friends. � N)�Values)� TYPE_CHECKING�List�Optional)�Command)�CommandContextMixIn)�CommandError)� SSLContext�� PipSession�returnr c �. � t j dk rt d� � � dd l} n+# t $ r t � d� � Y d S w xY w ddlm} n$# t $ r}t d|� �� � �d }~ww xY w|� | j � � S )N)� � z9The truststore feature is only available for Python 3.10+r z1Disabling truststore since ssl support is missing)� truststorez'The truststore feature is unavailable: )�sys�version_infor �ssl�ImportError�logger�warning�pip._vendorr r �PROTOCOL_TLS_CLIENT)r r �es �V/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/cli/index_command.py�_create_truststore_ssl_contextr s� � � ��'�!�!��V�W�W�W��� � � � ��� � � ����J�K�K�K��t�t�����J�*�*�*�*�*�*�*��� J� J� J��H�Q�H�H�I�I�I�����J���� � � ��!8�9�9�9s'