File: //usr/local/lib/python3.9/site-packages/future/backports/xmlrpc/__pycache__/client.cpython-39.pyc
a
q�dg/� �
@ s� d Z ddlmZmZmZmZ ddlmZmZm Z m
Z
mZ ddlZddl
Z
e
jdk rbeje_eje_ddlZddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlZddl Z ddl!m"Z" zddl#Z#W n e$y� dZ#Y n0 dd
� Z%e
j&dd� Z'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dZ3dZ4dZ5G dd� de6�Z7G dd� de7�Z8G dd � d e7�Z9G d!d"� d"e7�Z:e; Z<Z=d#d$� Z>d%d&� Z?G d'd(� d(e@�ZAd)d*� ZBd+d,� ZCG d-d.� d.e@�ZDd/d0� ZEeAeDfZFG d1d2� d2e@�ZGG d3d4� d4e@�ZHG d5d6� d6e@�ZIG d7d8� d8e@�ZJG d9d:� d:e@�ZKG d;d<� d<e@�ZLd ZM ZNZOdXd>d?�ZPdYd@dA�ZQdZdBdC�ZRdDdE� ZSdFdG� ZTG dHdI� dIe#�r|e#jUne@�ZVG dJdK� dKe@�ZWG dLdM� dMe@�ZXG dNdO� dOeX�ZYG dPdQ� dQe@�ZZeZZ[e\dRk�r�eZdS�Z]ze^e]j_�`� � W n0 e7�y Za ze^dTea� W Y dZa[an
dZa[a0 0 eLe]�Zbeb�c� eb�ddUdV� eb�edWdU� zeb� D ]Zfe^ef� �qLW n0 e7�y� Za ze^dTea� W Y dZa[an
dZa[a0 0 dS )[a�
Ported using Python-Future from the Python 3.3 standard library.
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).
� )�absolute_import�division�print_function�unicode_literals)�bytes�dict�int�range�strN)� � )�datetime)�client)�parse)�ensure_new_type)�expat)�BytesIOc C s$ | � dd�} | � dd�} | � dd�S )N�&z&�<z<�>z>)�replace)�s� r �H/usr/local/lib/python3.9/site-packages/future/backports/xmlrpc/client.py�escape� s r r i���i �iD���i����i���ip���iԁ��iC���iB���i����i����i����c @ s e Zd ZdZdd� ZdS )�ErrorzBase class for client errors.c C s t | �S �N)�repr��selfr r r �__str__� s z
Error.__str__N)�__name__�
__module__�__qualname__�__doc__r r r r r r � s r c @ s e Zd ZdZdd� Zdd� ZdS )�
ProtocolErrorz!Indicates an HTTP protocol error.c C s&