관리-도구
편집 파일: xmlrpc.cpython-311.pyc
� �܋f. � �� � d Z ddlZddlZddlZddlmZmZ ddl m Z ddlmZ ddl mZ erddlmZmZ ddlmZ ej e� � Z G d � d ej j � � ZdS )z#xmlrpclib.Transport implementation � N)� TYPE_CHECKING�Tuple)�NetworkConnectionError)� PipSession)�raise_for_status)� _HostType� _Marshallable)�SizedBufferc �d � � e Zd ZdZ ddedededdf� fd� Z dd d dedd deded f d�Z � xZ S )�PipXmlrpcTransportzRProvide a `xmlrpclib.Transport` implementation via a `PipSession` object. F� index_url�session�use_datetime�returnNc � �� t � � � |� � t j � |� � }|j | _ || _ d S )N)�super�__init__�urllib�parse�urlparse�scheme�_scheme�_session)�selfr r r �index_parts� __class__s ��m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_internal/network/xmlrpc.pyr zPipXmlrpcTransport.__init__ sG �� � ������&�&�&��l�+�+�I�6�6��"�)����� � � � �hostr �handler�request_bodyr �verbose)r .c � � t |t � � sJ �| j ||d d d f}t j � |� � } ddi}| j � |||d�� � }t |� � || _ | � |j � � S # t $ r5} | j sJ �t � d| j j |� � � d } ~ ww xY w)NzContent-Typeztext/xmlT)�data�headers�streamzHTTP error %s while getting %s)� isinstance�strr r r � urlunparser �postr r"