7f.dZddlZddlZddlZddlmZmZddl m Z ddl m Z ddl mZerddlmZmZddlmZejeZGd d ejjZdS) z#xmlrpclib.Transport implementation N) TYPE_CHECKINGTuple)NetworkConnectionError) PipSession)raise_for_status) _HostType _Marshallable) SizedBufferc deZdZdZ ddedededdffd Z dd d d ed d dededf 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 rr index_parts __class__s |/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/network/xmlrpc.pyrzPipXmlrpcTransport.__init__sG &&&l++I66 ")  hostrhandler request_bodyr verbose)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) rrr r!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(rboolrrr4 __classcell__)rs@rr r s IN   '1 AE        $    # $ rr )r8logging urllib.parser xmlrpc.clientxmlrpctypingrrpip._internal.exceptionsrpip._internal.network.sessionrpip._internal.network.utilsrrr _typeshedr getLoggerr5r.client Transportr rrrHs'''''''';;;;;;444444888888&66666666%%%%%%  8 $ $)))))0)))))r