%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/xmlrpc/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/xmlrpc/__pycache__/client.cpython-38.pyc

U

pa
@sfdZddlZddlZddlZddlmZddlmZddlZddl	Z
ddlmZddl
Z
ddlmZzddlZWnek
rdZYnXddZd	ejdd
ZdZdZd
ZdZdZdZdZd
ZdZdZdZdZ dZ!dZ"Gddde#Z$Gddde$Z%Gddde$Z&Gddde$Z'e(Z)Z*edddZ+e+,d d!krJd"d#Z-n"e+,d$d!krdd%d#Z-nd&d#Z-[+d'd(Z.Gd)d*d*Z/d+d,Z0d-d.Z1Gd/d0d0Z2d1d2Z3e/e2fZ4Gd3d4d4Z5Gd5d6d6Z6Gd7d8d8Z7Gd9d:d:Z8Gd;d<d<Z9Gd=d>d>Z:dZ;Z<Z=dYd@dAZ>dZdBdCZ?d[dDdEZ@dFdGZAd\dIdJZBGdKdLdLerXejCneDZEGdMdNdNZFGdOdPdPZGGdQdRdReGZHGdSdTdTZIeIZJeKdUkrbeIdVZLzeMeLjNOWn.e$k
rZPzeMdWePW5dZP[PXYnXe:eLZQeQReQSd
dXeQTdd
zeQD]ZUeMeUq Wn.e$k
r`ZPzeMdWePW5dZP[PXYnXdS)]a
An XML-RPC client interface for Python.

The marshalling and response parser code can also be used to
implement XML-RPC servers.

Exported exceptions:

  Error          Base class for client errors
  ProtocolError  Indicates an HTTP protocol error
  ResponseError  Indicates a broken response package
  Fault          Indicates an XML-RPC fault package

Exported classes:

  ServerProxy    Represents a logical connection to an XML-RPC server

  MultiCall      Executor of boxcared xmlrpc requests
  DateTime       dateTime wrapper for an ISO 8601 string or time tuple or
                 localtime integer value to generate a "dateTime.iso8601"
                 XML-RPC value
  Binary         binary data wrapper

  Marshaller     Generate an XML-RPC params chunk from a Python data structure
  Unmarshaller   Unmarshal an XML-RPC response from incoming XML event message
  Transport      Handles an HTTP transaction to an XML-RPC server
  SafeTransport  Handles an HTTPS transaction to an XML-RPC server

Exported constants:

  (none)

Exported functions:

  getparser      Create instance of the fastest available parser & attach
                 to an unmarshalling object
  dumps          Convert an argument tuple or a Fault instance to an XML-RPC
                 request (or response, if the methodresponse option is used).
  loads          Convert an XML-RPC packet to unmarshalled data plus a method
                 name (None if not present).
N)datetime)Decimal)expat)BytesIOcCs$|dd}|dd}|ddS)N&z&amp;<z&lt;>z&gt;)replace)sr)/usr/local/lib/python3.8/xmlrpc/client.pyescapesr
z%d.%diiiDiiipiԁiCiBiiic@seZdZdZejZdS)ErrorzBase class for client errors.N)__name__
__module____qualname____doc__object__str__rrrrrsrc@s eZdZdZddZddZdS)
ProtocolErrorz!Indicates an HTTP protocol error.cCs&t|||_||_||_||_dSN)r__init__urlerrcodeerrmsgheaders)selfrrrrrrrrs

zProtocolError.__init__cCsd|jj|j|j|jfS)Nz<%s for %s: %s %s>)	__class__rrrrrrrr__repr__szProtocolError.__repr__Nrrrrrr rrrrrsrc@seZdZdZdS)
ResponseErrorz$Indicates a broken response package.N)rrrrrrrrr"sr"c@s eZdZdZddZddZdS)Faultz#Indicates an XML-RPC fault package.cKst|||_||_dSr)rr	faultCodefaultString)rr$r%extrarrrrs
zFault.__init__cCsd|jj|j|jfS)Nz<%s %s: %r>)rrr$r%rrrrr szFault.__repr__Nr!rrrrr#sr#z%YZ0001cCs
|dSN%Y%m%dT%H:%M:%Sstrftimevaluerrr_iso8601_formatsr.z%4YcCs
|dS)Nz%4Y%m%dT%H:%M:%Sr*r,rrrr.scCs|ddS)Nr))r+zfillr,rrrr.scCsLt|trt|St|ttjfs<|dkr2t}t|}d|ddS)Nrz%04d%02d%02dT%02d:%02d:%02d)
isinstancerr.tupletimestruct_time	localtimer,rrr	_strftimes

r7c@sreZdZdZdddZddZddZd	d
ZddZd
dZ	ddZ
ddZddZddZ
ddZddZdS)DateTimezDateTime wrapper for an ISO 8601 string or time tuple or
    localtime integer value to generate 'dateTime.iso8601' XML-RPC
    value.
    rcCs t|tr||_n
t||_dSr)r2strr-r7)rr-rrrr(s
zDateTime.__init__cCst|tr|j}|j}nzt|tr2|j}t|}n`t|trH|j}|}nJt|drd|}|}n.t|drv|jj	p|t
|}td|jj	|f||fS)N	timetuplerzCan't compare %s and %s)r2r8r-rr.r9hasattrr:rrtype	TypeError)rotherr
oZotyperrrmake_comparable.s*







zDateTime.make_comparablecCs||\}}||kSrr@rr>r
r?rrr__lt__CszDateTime.__lt__cCs||\}}||kSrrArBrrr__le__GszDateTime.__le__cCs||\}}||kSrrArBrrr__gt__KszDateTime.__gt__cCs||\}}||kSrrArBrrr__ge__OszDateTime.__ge__cCs||\}}||kSrrArBrrr__eq__SszDateTime.__eq__cCst|jdSr()r4strptimer-rrrrr:WszDateTime.timetuplecCs|jSrr,rrrrr_szDateTime.__str__cCsd|jj|jt|fS)Nz<%s %r at %#x>)rrr-idrrrrr bszDateTime.__repr__cCst||_dSr)r9stripr-rdatarrrdecodeeszDateTime.decodecCs$|d||j|ddSNz<value><dateTime.iso8601>z</dateTime.iso8601></value>
)writer-)routrrrencodehs
zDateTime.encodeN)r)rrrrrr@rCrDrErFrGr:rr rMrQrrrrr8"s
r8cCst}|||Sr)r8rMrLr-rrr	_datetimems
rScCst|dSr()rrH)rLrrr_datetime_typessrTc@s:eZdZdZd
ddZddZddZd	d
ZddZdS)BinaryzWrapper for binary data.NcCs>|dkrd}n&t|ttfs,td|jjt|}||_dS)Nz#expected bytes or bytearray, not %s)r2bytes	bytearrayr=rrrLrKrrrrszBinary.__init__cCst|jdS)Nzlatin-1)r9rLrrrrrszBinary.__str__cCst|tr|j}|j|kSr)r2rUrL)rr>rrrrGs
z
Binary.__eq__cCst||_dSr)base64decodebytesrLrKrrrrMsz
Binary.decodecCs4|dt|j}||d|ddSNz<value><base64>
asciiz</base64></value>
)rOrYencodebytesrLrM)rrPencodedrrrrQs
z
Binary.encode)N)	rrrrrrrGrMrQrrrrrU|s
rUcCst}|||Sr)rUrMrRrrr_binarys
r_c@s$eZdZddZddZddZdS)ExpatParsercCsDtdd|_}||_|j|_|j|_|j|_	d}|
|ddSr)rZParserCreate_parser_targetstartZStartElementHandlerendZEndElementHandlerrLZCharacterDataHandlerxml)rtargetparserencodingrrrrszExpatParser.__init__cCs|j|ddSNr)raParserKrrrfeedszExpatParser.feedcCs8z
|j}Wntk
rYnX|`|`|dddS)NrVT)raAttributeErrorrbrj)rrgrrrcloses
zExpatParser.closeN)rrrrrkrmrrrrr`s	r`c@seZdZdZdddZiZddZdd	Zd
dZeee	d<dd
Z
e
ee<ddZeee
<eZddZeee<efddZeee<ddZeee<eee<ddZeee<eee<efddZeee<ddZeee<ddZeee<eee <eed<dS) 
MarshalleravGenerate an XML-RPC params chunk from a Python data structure.

    Create a Marshaller instance for each set of parameters, and use
    the "dumps" method to convert your data (represented as a tuple)
    to an XML-RPC params chunk.  To write a fault response, pass a
    Fault instance instead.  You may prefer to use the "dumps" module
    function for this purpose.
    NFcCsi|_d|_||_||_dSr)memorLrh
allow_none)rrhrprrrrszMarshaller.__init__cCsg}|j}|j}t|tr@|d||j|jd||dn4|d|D]}|d||||dqL|dd|}|S)	Nz<fault>
)r$r%z	</fault>
z	<params>
z<param>
z	</param>
z
</params>
)append_Marshaller__dumpr2r#r$r%join)rvaluesrPrOdumpvresultrrrdumpss&




zMarshaller.dumpscCsz|jt|}Wnftk
rxt|ds<tdt|t|jD]"}||jkrFtdt|qF|jd}YnX||||dS)N__dict__zcannot marshal %s objects_arbitrary_instance)dispatchr<KeyErrorr;r=__mro__keys)rr-rOfZtype_rrrZ__dumps
zMarshaller.__dumpcCs|jstd|ddS)Nz0cannot marshal None unless allow_none is enabledz<value><nil/></value>)rpr=rr-rOrrrdump_nil
szMarshaller.dump_nilcCs$|d||rdpd|ddS)Nz<value><boolean>10z</boolean></value>
rrrrr	dump_boolszMarshaller.dump_boolcCs<|tks|tkrtd|d|tt||ddS)Nzint exceeds XML-RPC limitsz<value><int>z</int></value>
)MAXINTMININT
OverflowErrorr9intrrrr	dump_longs
zMarshaller.dump_longcCs |d|t||ddS)Nz<value><double>z</double></value>
)reprrrrrdump_double$szMarshaller.dump_doublecCs |d||||ddS)Nz<value><string>z</string></value>
r)rr-rOr
rrrdump_unicode*szMarshaller.dump_unicodecCs,|dt|}||d|ddSr[)rYr]rM)rr-rOr^rrr
dump_bytes0s
zMarshaller.dump_bytescCsZt|}||jkrtdd|j|<|j}|d|D]}|||q6|d|j|=dS)Nz"cannot marshal recursive sequencesz<value><array><data>
z</data></array></value>
)rIror=rs)rr-rOirvrwrrr
dump_array8s

zMarshaller.dump_arraycCst|}||jkrtdd|j|<|j}|d|D]D\}}|dt|ts\td|d||||||dq:|d|j|=dS)Nz%cannot marshal recursive dictionariesz<value><struct>
z	<member>
zdictionary key must be stringz<name>%s</name>
z
</member>
z</struct></value>
)rIror=rsitemsr2r9)rr-rOr
rrvkrwrrrdump_structFs




zMarshaller.dump_structcCs |d|t||ddSrN)r7rrrr
dump_datetimeXszMarshaller.dump_datetimecCs2|jtkr ||_|||`n||j|dSr)rWRAPPERSrOrQrrzrrrr
dump_instance^s


zMarshaller.dump_instancer{)NF)!rrrrrr|ryrsrr<rboolrrZdump_intrfloatr
rr9rrWrXrr3listrdictrrrr8rUrrrrrns<
	rnc@sneZdZdZdEddZddZddZd	d
ZddZd
dZ	ddZ
ddZiZddZ
e
ed<ddZeed<ddZeed<eed<eed<eed<eed<eed <d!d"Zeed#<eed$<d%d&Zeed'<d(d)Zeed*<eed+<d,d-Zeed.<d/d0Zeed1<d2d3Zeed4<d5d6Zeed7<d8d9Zeed:<d;d<Zeed=<d>d?Zeed@<dAdBZeedC<dDS)FUnmarshalleraUnmarshal an XML-RPC response, based on incoming XML event
    messages (start, data, end).  Call close() to get the resulting
    data structure.

    Note that this reader is fairly tolerant, and gladly accepts bogus
    XML-RPC data without complaining (but not bogus XML).
    FcCsHd|_g|_g|_g|_d|_d|_d|_|jj|_|p:||_||_	dS)NFutf-8)
_type_stack_marks_data_value_methodname	_encodingrr
_use_datetime
_use_bytes)ruse_datetimeuse_builtin_typesrrrr~s

zUnmarshaller.__init__cCs:|jdks|jrt|jdkr0tf|jdt|jS)Nfaultr)rrr"r#rr3rrrrrms

zUnmarshaller.closecCs|jSr)rrrrr
getmethodnameszUnmarshaller.getmethodnamecCs
||_dSr)r)rrhZ
standalonerrrreszUnmarshaller.xmlcCshd|kr|dd}|dks&|dkr8|jt|jg|_|jrZ||jkrZtd||dk|_dS)N:arraystructzunknown tag %rr-)	splitrrrlenrrrr|r")rtagZattrsrrrrcszUnmarshaller.startcCs|j|dSr)rrr)rtextrrrrLszUnmarshaller.datacCsvz|j|}WnTtk
rbd|kr,YdSz|j|dd}Wntk
r\YYdSXYnX||d|jS)Nrrrq)r|r}rrtr)rrrrrrrdszUnmarshaller.endcCsnz|j|}WnTtk
rbd|kr,YdSz|j|dd}Wntk
r\YYdSXYnX|||S)Nrr)r|r}r)rrrLrrrrend_dispatchszUnmarshaller.end_dispatchcCs|dd|_dSri)rrrrKrrrend_nils
zUnmarshaller.end_nilnilcCs:|dkr|dn|dkr(|dntdd|_dS)NrFrTzbad boolean valuer)rrr=rrKrrrend_booleanszUnmarshaller.end_booleanbooleancCs|t|d|_dSri)rrrrrKrrrend_intszUnmarshaller.end_intZi1Zi2Zi4Zi8rZ
bigintegercCs|t|d|_dSri)rrrrrKrrr
end_doubleszUnmarshaller.end_doubleZdoublercCs|t|d|_dSri)rrrrrKrrrend_bigdecimalszUnmarshaller.end_bigdecimalZ
bigdecimalcCs&|jr||j}||d|_dSri)rrMrrrrKrrr
end_strings
zUnmarshaller.end_stringstringnamecCs.|j}|j|dg|j|d<d|_dSri)rpoprr)rrLmarkrrr	end_arrays
zUnmarshaller.end_arrayrcCs`|j}i}|j|d}tdt|dD]}||d|||<q,|g|j|d<d|_dS)Nrrr')rrrrangerr)rrLrrrrrrr
end_structs
zUnmarshaller.end_structrcCs6t}||d|jr"|j}||d|_dS)Nr\r)rUrMrQrrLrrrrrLr-rrr
end_base64
s
zUnmarshaller.end_base64rYcCs,t}|||jrt|}||dSr)r8rMrrTrrrrrrend_dateTimes

zUnmarshaller.end_dateTimezdateTime.iso8601cCs|jr||dSr)rrrKrrr	end_valueszUnmarshaller.end_valuer-cCs
d|_dS)NparamsrrKrrr
end_params"szUnmarshaller.end_paramsrcCs
d|_dS)NrrrKrrr	end_fault&szUnmarshaller.end_faultrcCs"|jr||j}||_d|_dS)N
methodName)rrMrrrKrrrend_methodName*szUnmarshaller.end_methodNamerN)FF)rrrrrrmrrercrLrdrr|rrrrrrrrrrrrrrrrrrrrsZ
	rc@s$eZdZddZddZddZdS)_MultiCallMethodcCs||_||_dSr)_MultiCallMethod__call_list_MultiCallMethod__name)rZ	call_listrrrrr7sz_MultiCallMethod.__init__cCst|jd|j|fSNz%s.%s)rrrrrrrr__getattr__:sz_MultiCallMethod.__getattr__cGs|j|j|fdSr)rrrrrargsrrr__call__<sz_MultiCallMethod.__call__Nrrrrrrrrrrr4src@s eZdZdZddZddZdS)MultiCallIteratorzaIterates over the results of a multicall. Exceptions are
    raised in response to xmlrpc faults.cCs
||_dSr)results)rrrrrrCszMultiCallIterator.__init__cCsR|j|}t|tikr.t|d|dn t|tgkrF|dStddS)Nr$r%rz#unexpected type in multicall result)rr<r#
ValueError)rritemrrr__getitem__Fs
zMultiCallIterator.__getitem__N)rrrrrrrrrrr?src@s0eZdZdZddZddZddZdd	Zd
S)	MultiCalla~server -> an object used to boxcar method calls

    server should be a ServerProxy object.

    Methods can be added to the MultiCall using normal
    method call syntax e.g.:

    multicall = MultiCall(server_proxy)
    multicall.add(2,3)
    multicall.get_address("Guido")

    To execute the multicall, call the MultiCall object e.g.:

    add_result, address = multicall()
    cCs||_g|_dSr)_MultiCall__server_MultiCall__call_list)rserverrrrr`szMultiCall.__init__cCsd|jjt|fS)Nz<%s at %#x>)rrrIrrrrr dszMultiCall.__repr__cCst|j|Sr)rrrrrrrgszMultiCall.__getattr__cCs6g}|jD]\}}|||dq
t|jj|S)N)rr)rrrrrsystemZ	multicall)rZmarshalled_listrrrrrrjszMultiCall.__call__N)rrrrrr rrrrrrrOs
rFcCsrtrHtrH|rt}tj}n|r&t}t}nt}t}tdd||t}t|}n"t||d}trbt|}nt	|}||fS)zgetparser() -> parser, unmarshaller

    Create an instance of the fastest available parser, and attach it
    to an unmarshalling object.  Return both objects.
    TFrr)

FastParserFastUnmarshallerrTrYrZr_rSr#rr`)rrZ
mkdatetimeZmkbytesrfrgrrr	getparser|s 

rcCst|ttfstdt|tr&d}n"|rHt|trHt|dksHtd|sPd}tr^t|}n
t||}||}|dkrdt|}nd}|r|d|d|d	f}n|r|d
|df}n|Sd	|S)
adata [,options] -> marshalled data

    Convert an argument tuple or a Fault instance to an XML-RPC
    request (or response, if the methodresponse option is used).

    In addition to the data object, the following options can be given
    as keyword arguments:

        methodname: the method name for a methodCall packet

        methodresponse: true to create a methodResponse packet.
        If this option is used with a tuple, the tuple must be
        a singleton (i.e. it can contain only one element).

        encoding: the packet encoding (default is UTF-8)

    All byte strings in the data structure are assumed to use the
    packet encoding.  Unicode strings are automatically converted,
    where necessary.
    z(argument must be tuple or Fault instancer'z"response tuple must be a singletonrz$<?xml version='1.0' encoding='%s'?>
z<?xml version='1.0'?>
z<methodCall>
<methodName>z</methodName>
z</methodCall>
z<methodResponse>
z</methodResponse>
rq)
r2r3r#AssertionErrorrFastMarshallerrnryr9rt)r
methodnameZmethodresponserhrpmrLZ	xmlheaderrrrrys<



rycCs2t||d\}}|||||fS)zdata -> unmarshalled data, method name

    Convert an XML-RPC packet to unmarshalled data plus a method
    name (None if not present).

    If the XML-RPC packet represents a fault condition, this function
    raises a Fault exception.
    r)rrkrmr)rLrrpurrrloadss	
rc	Cs<tstt}tjd|dd}||W5QRX|S)zhdata -> gzip encoded data

    Encode data using the gzip content encoding as described in RFC 1952
    wbr')modefileobj
compresslevel)gzipNotImplementedErrorrGzipFilerOgetvalue)rLrgzfrrrgzip_encodesr@c	Cststtjdt|dH}z$|dkr0|}n||d}Wntk
r\tdYnXW5QRX|dkrt||krtd|S)zrgzip encoded data -> unencoded data

    Decode data using the gzip content encoding as described in RFC 1952
    rbrrrr'zinvalid dataz#max gzipped payload length exceeded)rrrrreadOSErrorrr)rLZ
max_decoderZdecodedrrrgzip_decodes
rc@s eZdZdZddZddZdS)GzipDecodedResponsezha file-like object to decode a response encoded with the gzip
    method, as described in RFC 1952.
    cCs.tstt||_tjj|d|jddS)Nrr)rrrriorr)rresponserrrr:szGzipDecodedResponse.__init__cCs"ztj|W5|jXdSr)rrmrrrrrrrmBszGzipDecodedResponse.closeN)rrrrrrmrrrrr6src@s$eZdZddZddZddZdS)_MethodcCs||_||_dSr
_Method__send
_Method__name)rsendrrrrrOsz_Method.__init__cCst|jd|j|fSr)rrrrrrrrRsz_Method.__getattr__cGs||j|SrrrrrrrTsz_Method.__call__NrrrrrrLsrc@seZdZdZdeZdZdZddddd	Zdd
dZ	d dd
Z
ddZddZddZ
ddZddZddZddZddZdS)!	Transportz1Handles an HTTP transaction to an XML-RPC server.zPython-xmlrpc/%sTNFr)rcCs&||_||_d|_t||_g|_dSN)NN)r_use_builtin_types_connectionr_headers_extra_headers)rrrrrrrrks

zTransport.__init__cCsdD]v}z|||||WStjjk
r<|r8Yqtk
rx}z |sf|jtjtjtjfkrhW5d}~XYqXqdS)N)rr')	single_requesthttpclientZRemoteDisconnectedrerrnoZ
ECONNRESETZECONNABORTEDEPIPE)rhosthandlerrequest_bodyverbosererrrrequest}szTransport.requestcCsz8|||||}|}|jdkr6||_||WSWn2tk
rNYntk
rj|YnX|ddr|	t
|||j|jt|
dS)Nzcontent-lengthrq)send_requestZgetresponsestatusrparse_responser#	Exceptionrm	getheaderrrreasonrZ
getheaders)rrrrrZ	http_connZresprrrr	s&

zTransport.single_requestcCst|j|jdS)Nr)rrrrrrrrszTransport.getparsercCsri}t|tr|\}}tj|\}}|rdtj|}t|d}d	|
}dd|fg}ng}|||fS)NrrqZ
AuthorizationzBasic )r2r3urllibparseZ
_splituserZunquote_to_bytesrYr]rMrtr)rrx509ZauthZ
extra_headersrrr
get_host_infos

zTransport.get_host_infocCsL|jr||jdkr|jdS||\}|_}|tj|f|_|jdS)Nrr')rrrr
rZHTTPConnectionrrZchostrrrrmake_connections

zTransport.make_connectioncCs |j\}}|rd|_|dSr)rrm)rr
connectionrrrrms
zTransport.closecCs||}|j|j}|r$|d|jrJtrJ|jd|dd|dn|d||d|d|jf|	|||
|||S)Nr'ZPOSTT)Zskip_accept_encoding)zAccept-Encodingr)zContent-Typeztext/xmlz
User-Agent)r rrZset_debuglevelaccept_gzip_encodingrZ
putrequestrr
user_agentsend_headerssend_content)rrrrdebugr!rrrrrs



zTransport.send_requestcCs|D]\}}|||qdSr)	putheader)rr!rkeyvalrrrr$szTransport.send_headerscCsR|jdk	r0|jt|kr0tr0|ddt|}|dtt|||dS)NContent-EncodingrzContent-Length)encode_thresholdrrr'rr9Z
endheaders)rr!rrrrr%s
zTransport.send_contentcCst|dr*|dddkr$t|}q.|}n|}|\}}|d}|sJqj|jr^tdt|||q:||k	rz|	|	|	S)Nrr*rqrizbody:)
r;rrrrrprintrrkrm)rrstreamrrrLrrrr$s 


zTransport.parse_response)FF)F)F)rrrr__version__r#r"r+rrr	rrr rmrr$r%rrrrrr]s"

!rcs2eZdZdZd
dddfddZdd	ZZS)
SafeTransportz2Handles an HTTPS transaction to an XML-RPC server.FrNrcontextcstj|||d||_dS)Nrrr)superrr1)rrrrr1rrrrEs
zSafeTransport.__init__cCst|jr||jdkr|jdSttjds2td||\}|_}|tjj|dfd|ji|p`if|_|jdS)Nrr'HTTPSConnectionz1your version of http.client doesn't support HTTPSr1)	rr;r
rrrrr5r1rrrrr Ns


zSafeTransport.make_connection)FF)rrrrrr 
__classcell__rrr4rr/Bs	r/c@sZeZdZdZddddddZdd	Zd
dZdd
ZddZddZ	ddZ
ddZdS)ServerProxyauri [,options] -> a logical connection to an XML-RPC server

    uri is the connection point on the server, given as
    scheme://host/target.

    The standard implementation always supports the "http" scheme.  If
    SSL socket support is available (Python 2.0), it also supports
    "https".

    If the target part and the slash preceding it are both omitted,
    "/RPC2" is assumed.

    The following options can be given as keyword arguments:

        transport: a transport factory
        encoding: the request encoding (default is UTF-8)

    All 8-bit strings passed to the server proxy are assumed to use
    the given encoding.
    NFrr0c
Cstj|\}
}|
dkr tdtj|\|_|_|js@d|_|dkr||
dkr^t}d|	i}nt}i}|f|||d|}||_	|pd|_
||_||_dS)N)r
httpszunsupported XML-RPC protocolz/RPC2r8r1r2r)
rrZ
_splittyperZ
_splithost_ServerProxy__host_ServerProxy__handlerr/r_ServerProxy__transport_ServerProxy__encoding_ServerProxy__verbose_ServerProxy__allow_none)
rZuri	transportrhrrprrrr1r<rZextra_kwargsrrrrs,

zServerProxy.__init__cCs|jdSr)r;rmrrrrZ__closeszServerProxy.__closecCsPt|||j|jd|jd}|jj|j|j||jd}t	|dkrL|d}|S)N)rhrpxmlcharrefreplace)rr'r)
ryr<r>rQr;rr9r:r=r)rrrrrrrrZ	__requests
zServerProxy.__requestcCsd|jj|j|jfS)Nz
<%s for %s%s>)rrr9r:rrrrr szServerProxy.__repr__cCst|j|Sr)r_ServerProxy__requestrrrrrszServerProxy.__getattr__cCs.|dkr|jS|dkr|jStd|fdS)z|A workaround to get special attributes on the ServerProxy
           without interfering with the magic __getattr__
        rmr?zAttribute %r not foundN)_ServerProxy__closer;rl)rattrrrrrs
zServerProxy.__call__cCs|Srrrrrr	__enter__szServerProxy.__enter__cGs|dSr)rBrrrr__exit__szServerProxy.__exit__)NNFFFF)rrrrrrBrAr rrrDrErrrrr7ms 
r7__main__zhttp://localhost:8000ERROR	)FF)NNNF)FF)r)VrrYsysr4rdecimalrZhttp.clientr
Zurllib.parserZxml.parsersrrrrrImportErrorr
version_infor.rrZPARSE_ERRORZSERVER_ERRORZAPPLICATION_ERRORZSYSTEM_ERRORZTRANSPORT_ERRORZNOT_WELLFORMED_ERRORZUNSUPPORTED_ENCODINGZINVALID_ENCODING_CHARZINVALID_XMLRPCZMETHOD_NOT_FOUNDZINVALID_METHOD_PARAMSZINTERNAL_ERRORrrrr"r#rrZBooleanZ_day0r+r.r7r8rSrTrUr_rr`rnrrrrrrrrryrrrrrrrrr/r7ZServerrrr,ZcurrentTimeZgetCurrentTimerwZmultiZgetDatapowaddrrrrr<module>Ys*



K	#!(C%
'
K

f+h



Zerion Mini Shell 1.0