OwlCyberSecurity - MANAGER
Edit File: index_command.cpython-312.pyc
� "��g- � � � 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� de e� Zy)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)�certifi)�Command)�CommandContextMixIn)� SSLContext�� PipSession�returnr c �| � t j dk rt j d� y dd l} ddlm} |j | j � }|j t j � � |S # t $ r t j d� Y y w xY w# t $ r t j d� Y y w xY w)N)� � z7Disabling truststore because Python version isn't 3.10+r z1Disabling truststore since ssl support is missing)� truststorez5Disabling truststore because platform isn't supported)�sys�version_info�logger�debug�ssl�ImportError�warning�pip._vendorr r �PROTOCOL_TLS_CLIENT�load_verify_locationsr �where)r r �ctxs �N/opt/hc_python/lib/python3.12/site-packages/pip/_internal/cli/index_command.py�_create_truststore_ssl_contextr s� � � ���'�!����N�O���� �*� � � �� 7� 7� 8�C����g�m�m�o�.��J�� � ����J�K���� � ����N�O���s"