RedZddlZddlZddlZddlmZmZddl m Z ddl m Z ddl mZerddlmZmZejeZGdd ejjZdS) z#xmlrpclib.Transport implementation N) TYPE_CHECKINGTuple)NetworkConnectionError) PipSession)raise_for_status) _HostType _Marshallablec deZdZdZ ddedededdffd Z dd d d ed ed ede df dZ xZ S)PipXmlrpcTransportzRProvide a `xmlrpclib.Transport` implementation via a `PipSession` object. F index_urlsession use_datetimereturnNct|tj|}|j|_||_dS)N)super__init__urllibparseurlparsescheme_scheme_session)selfr r r index_parts __class__s /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/network/xmlrpc.pyrzPipXmlrpcTransport.__init__sG &&&l++I66 ")  hostrhandler request_bodyverbose)r .ct|tsJ|j||dddf}tj|} ddi}|j|||d}t|||_ | |j S#t$r5} | j sJtd| j j|d} ~ wwxYw)Nz Content-Typeztext/xmlT)dataheadersstreamzHTTP error %s while getting %s) isinstancestrrrr urlunparserpostrr!parse_responserawrresponseloggercritical status_code) rrrr r!partsurlr$r,excs rrequestzPipXmlrpcTransport.request s$$$$$$tWdD$?l%%e,, %z2G}))! *H X & & &"DL&&x|44 4%   <    OO0 (     sAB C!0CC)F) __name__ __module__ __qualname____doc__r'rboolrbytesrr3 __classcell__)rs@rr r s IN   '1 AE            # $ rr )r7logging urllib.parser xmlrpc.clientxmlrpctypingrrpip._internal.exceptionsrpip._internal.network.sessionrpip._internal.network.utilsrrr getLoggerr4r-client Transportr rrrGs'''''''';;;;;;444444888888766666666  8 $ $)))))0)))))r