File: //lib64/python3.9/xmlrpc/__pycache__/client.cpython-39.opt-1.pyc
a
    �DOg�  �                
   @   sf  d Z ddlZddlZddlZddlmZ ddlmZ ddlZddl	Z
ddlmZ ddl
Z
ddlmZ zddlZW n ey�   dZY n0 dd� Zd	ejdd
�  ZdZdZd
ZdZdZdZdZd
ZdZdZdZdZ dZ!dZ"G dd� de#�Z$G dd� de$�Z%G dd� de$�Z&G dd� de$�Z'e( Z)Z*eddd�Z+d d!� Z,e,d"��rJd#d$� Z-ne,d%��r^d&d$� Z-nd'd$� Z-[+[,d(d)� Z.G d*d+� d+�Z/d,d-� Z0d.d/� Z1G d0d1� d1�Z2d2d3� Z3e/e2fZ4G d4d5� d5�Z5G d6d7� d7�Z6G d8d9� d9�Z7G d:d;� d;�Z8G d<d=� d=�Z9G d>d?� d?�Z:d Z; Z<Z=dZdAdB�Z>d[dCdD�Z?d\dEdF�Z@dGdH� ZAd]dJdK�ZBG dLdM� dMe�rTejCneD�ZEG dNdO� dO�ZFG dPdQ� dQ�ZGG dRdS� dSeG�ZHG dTdU� dU�ZIeIZJeKdVk�rbeIdW�ZLzeMeLjN�O� � W n0 e$�y� ZP zeMdXeP� W Y dZP[Pn
dZP[P0 0 e:eL�ZQeQ�R�  eQ�Sd
dY� eQ�Tdd
� zeQ� D ]ZUeMeU� �qW n0 e$�y` ZP zeMdXeP� W Y dZP[Pn
dZP[P0 0 dS )^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)�BytesIOc                 C   s$   | � dd�} | � dd�} | � dd�S )N�&z&�<z<�>z>)�replace)�s� r   �%/usr/lib64/python3.9/xmlrpc/client.py�escape�   s    r
   z%d.%d�   i���i   �iD���i����i���ip���iԁ��iC���iB���i����i����i����c                   @   s   e Zd ZdZejZdS )�ErrorzBase class for client errors.N)�__name__�
__module__�__qualname__�__doc__�object�__str__r   r   r   r   r   �   s   r   c                   @   s    e Zd ZdZdd� Zdd� ZdS )�
ProtocolErrorz!Indicates an HTTP protocol error.c                 C   s&