ó
‰wÛjc           @   s×  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Td d l Z d d l Z d d l Z y d d l	 Z	 Wn e
 k
 r� d Z	 n Xy e Wn e k
 r¯ d Z n Xy d d l Z Wn e
 k
 rÙ d Z n Xy e j j d k Z Wn e k
 r	d Z n Xe j d ƒ j d „ Z e j d „ Z e rCd	 „  Z n	 d
 „  Z d Z dX Z dZ Z d Z d Z d Z d Z d Z  d Z! d Z" d Z# d Z$ d Z% d Z& d Z' d e( f d „  ƒ  YZ) d e) f d „  ƒ  YZ* d e) f d „  ƒ  YZ+ d e) f d  „  ƒ  YZ, d d! l- m. Z. e. e j/ Z0 e rBe1 Z2 Z3 e4 e0 d" <e e0 d# <nE d$ d[ d% „  ƒ  YZ3 e3 d ƒ e0 d" <e3 d ƒ e0 d# <e e4 f d& „ Z2 [. [0 d' „  Z5 d( d\ d) „  ƒ  YZ6 d* „  Z7 d+ „  Z8 d d l9 Z9 y d d l: Z; Wn e
 k
 röd d l; Z; n Xd, d] d- „  ƒ  YZ< d. „  Z= e6 e< f Z> e s5e> e3 f Z> n  y" d d l? Z? e? j@ ZA e? jB ZC Wn! eD e
 f k
 rzd ZA ZC n Xy d d l? Z? e? jE ZF Wn eD e
 f k
 r³d ZF n Xy, d d/ lG mH ZH eI eH d0 ƒ sße
 ‚ n  Wn e
 k
 rùd ZJ n Xd1 d^ d2 „  ƒ  YZJ d3 d_ d4 „  ƒ  YZK d5 d` d6 „  ƒ  YZE d7 da d8 „  ƒ  YZB d9 db d: „  ƒ  YZL d; dc d< „  ƒ  YZM d= dd d> „  ƒ  YZN d d? „ ZO d d d d d@ „ ZP d dA „ ZQ dB „  ZR dC dD „ ZS dE e	 rÓe	 jT n eU f dF „  ƒ  YZV dG de dH „  ƒ  YZW dI df dJ „  ƒ  YZX dK eX f dL „  ƒ  YZY dM dg dN „  ƒ  YZZ eZ Z[ e dO k rÓeZ dP ƒ Z\ e\ GHeN e\ ƒ Z] e] j^ dQ dR ƒ e] j_ dS d ƒ e] j_ dT dU ƒ y x e] ƒ  D] Z` e` GHq¡WWqÓe) k
 rÏZa dV Gea GHqÓXn  d S(h   s~  
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
  Boolean        boolean wrapper to generate a "boolean" XML-RPC value
  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

  SlowParser     Slow but safe standard parser (based on xmllib)
  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:

  True
  False

Exported functions:

  boolean        Convert any Python value to an XML-RPC boolean
  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).
iÿÿÿÿN(   t   *t   booli    s   [€-ÿ]c         C   s.   t  r* | r* | |  ƒ r* t  |  | ƒ }  n  |  S(   N(   t   unicode(   t   datat   encodingt   is8bit(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   _decode©   s    c         C   s4   | |  d d ƒ }  | |  d d ƒ }  | |  d d ƒ S(   Nt   &s   &amp;t   <s   &lt;t   >s   &gt;(    (   t   st   replace(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   escape¯   s    c         C   s*   y |  j  d ƒ SWn t k
 r% |  SXd  S(   Nt   ascii(   t   encodet   UnicodeError(   t   string(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   _stringifyµ   s    c         C   s   |  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ¼   s    s   1.0.1l    i   i   iD€ÿÿi¨€ÿÿi�ÿÿip�ÿÿiÔ�ÿÿiC€ÿÿiB€ÿÿi§€ÿÿi¦€ÿÿi¥€ÿÿt   Errorc           B   s   e  Z d  Z d „  Z RS(   s   Base class for client errors.c         C   s
   t  |  ƒ S(   N(   t   repr(   t   self(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __str__á   s    (   t   __name__t
   __module__t   __doc__R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ß   s   t   ProtocolErrorc           B   s    e  Z d  Z d „  Z d „  Z RS(   s!   Indicates an HTTP protocol error.c         C   s5   t  j |  ƒ | |  _ | |  _ | |  _ | |  _ d  S(   N(   R   t   __init__t   urlt   errcodet   errmsgt   headers(   R   R   R   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ð   s
    			c         C   s   d |  j  |  j |  j f S(   Ns   <ProtocolError for %s: %s %s>(   R   R   R   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __repr__ö   s    (   R   R   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   î   s   	t   ResponseErrorc           B   s   e  Z d  Z RS(   s$   Indicates a broken response package.(   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR      s   t   Faultc           B   s    e  Z d  Z d „  Z d „  Z RS(   s#   Indicates an XML-RPC fault package.c         K   s#   t  j |  ƒ | |  _ | |  _ d  S(   N(   R   R   t	   faultCodet   faultString(   R   R"   R#   t   extra(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR     s    	c         C   s   d |  j  t |  j ƒ f S(   Ns   <Fault %s: %s>(   R"   R   R#   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR     s    (   R   R   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR!     s   	(   t   modulest   Truet   Falset   Booleanc           B   sG   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   sa   Boolean-value wrapper.

        Use True or False to generate a "boolean" XML-RPC value.
        i    c         C   s   t  j | ƒ |  _ d  S(   N(   t   operatort   trutht   value(   R   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   3  s    c         C   s   | j  d |  j ƒ d  S(   Ns%   <value><boolean>%d</boolean></value>
(   t   writeR+   (   R   t   out(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   6  s    c         C   s+   t  | t ƒ r | j } n  t |  j | ƒ S(   N(   t
   isinstanceR(   R+   t   cmp(   R   t   other(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __cmp__9  s    c         C   s)   |  j  r d t |  ƒ Sd t |  ƒ Sd  S(   Ns   <Boolean True at %x>s   <Boolean False at %x>(   R+   t   id(   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   >  s    	c         C   s   |  j  S(   N(   R+   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __int__D  s    c         C   s   |  j  S(   N(   R+   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __nonzero__G  s    (	   R   R   R   R   R   R1   R   R3   R4   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR(   -  s   				c         C   s   | t  j |  ƒ S(   s.   Convert any Python value to XML-RPC 'boolean'.(   R)   R*   (   R+   t
   _truefalse(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   booleanX  s    c         C   s˜   t  rG t |  t  j  ƒ rG d |  j |  j |  j |  j |  j |  j f Sn  t |  t t	 j
 f ƒ sŒ |  d k rz t	 j	 ƒ  }  n  t	 j |  ƒ }  n  d |  d  S(   Ns   %04d%02d%02dT%02d:%02d:%02di    i   (   t   datetimeR.   t   yeart   montht   dayt   hourt   minutet   secondt	   TupleTypet   timet   struct_timet	   localtime(   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   _strftimek  s    t   DateTimec           B   s�   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s‹   DateTime wrapper for an ISO 8601 string or time tuple or
    localtime integer value to generate 'dateTime.iso8601' XML-RPC
    value.
    i    c         C   s.   t  | t ƒ r | |  _ n t | ƒ |  _ d  S(   N(   R.   t
   StringTypeR+   RB   (   R   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR     s    c         C   sï   t  | t ƒ r$ |  j } | j } nÁ t rW t  | t j ƒ rW |  j } | j d ƒ } nŽ t  | t ƒ rx |  j } | } nm t | d ƒ r¢ |  j ƒ  } | j ƒ  } nC t | d ƒ r½ | j j	 pÆ t
 | ƒ } t d |  j j	 | f ƒ ‚ | | f S(   Ns   %Y%m%dT%H:%M:%St	   timetuplet	   __class__s   Can't compare %s and %s(   R.   RC   R+   R7   t   strftimet
   basestringt   hasattrRE   RF   R   t   typet	   TypeError(   R   R0   R
   t   ot   otype(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   make_comparable…  s$    				c         C   s   |  j  | ƒ \ } } | | k  S(   N(   RN   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __lt__š  s    c         C   s   |  j  | ƒ \ } } | | k S(   N(   RN   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __le__ž  s    c         C   s   |  j  | ƒ \ } } | | k S(   N(   RN   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __gt__¢  s    c         C   s   |  j  | ƒ \ } } | | k S(   N(   RN   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __ge__¦  s    c         C   s   |  j  | ƒ \ } } | | k S(   N(   RN   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __eq__ª  s    c         C   s   |  j  | ƒ \ } } | | k S(   N(   RN   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __ne__®  s    c         C   s   t  j |  j d ƒ S(   Ns   %Y%m%dT%H:%M:%S(   R?   t   strptimeR+   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRE   ²  s    c         C   s"   |  j  | ƒ \ } } t | | ƒ S(   N(   RN   R/   (   R   R0   R
   RL   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR1   µ  s    c         C   s   |  j  S(   N(   R+   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ¾  s    c         C   s   d t  |  j ƒ t |  ƒ f S(   Ns   <DateTime %s at %x>(   R   R+   R2   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   Á  s    c         C   s"   t  | ƒ } t j | ƒ |  _ d  S(   N(   t   strR   t   stripR+   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   decodeÄ  s    c         C   s.   | j  d ƒ | j  |  j ƒ | j  d ƒ d  S(   Ns   <value><dateTime.iso8601>s   </dateTime.iso8601></value>
(   R,   R+   (   R   R-   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   È  s    (   R   R   R   R   RN   RO   RP   RQ   RR   RS   RT   RE   R1   R   R   RX   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRC   y  s   													c         C   s   t  ƒ  } | j |  ƒ | S(   N(   RC   RX   (   R   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   _datetimeÍ  s    	c         C   s)   t  j |  d ƒ } t j t | ƒ d  Œ  S(   Ns   %Y%m%dT%H:%M:%Si   (   R?   RU   R7   t   tuple(   R   t   t(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   _datetime_typeÓ  s    t   Binaryc           B   s>   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d „  Z RS(   s   Wrapper for binary data.c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   æ  s    c         C   s   |  j  p d S(   Nt    (   R   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   î  s    c         C   s+   t  | t ƒ r | j } n  t |  j | ƒ S(   N(   R.   R]   R   R/   (   R   R0   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR1   ñ  s    c         C   s   t  j | ƒ |  _ d  S(   N(   t   base64t   decodestringR   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRX   ö  s    c         C   s:   | j  d ƒ t j t j |  j ƒ | ƒ | j  d ƒ d  S(   Ns   <value><base64>
s   </base64></value>
(   R,   R_   R   t   StringIOR   (   R   R-   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ù  s    N(	   R   R   R   t   NoneR   R   R1   RX   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR]   ã  s   			c         C   s   t  ƒ  } | j |  ƒ | S(   N(   R]   RX   (   R   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   _binaryþ  s    	(   t   expatt   ParserCreatet   ExpatParserc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sr   t  j d  d  ƒ |  _ } | |  _ | j | _ | j | _ | j	 | _
 d  } | j s^ d } n  | j | d  ƒ d  S(   Ns   utf-8(   Rd   Re   Rb   t   _parsert   _targett   startt   StartElementHandlert   endt   EndElementHandlerR   t   CharacterDataHandlert   returns_unicodet   xml(   R   t   targett   parserR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   "  s    			c         C   s   |  j  j | d ƒ d  S(   Ni    (   Rg   t   Parse(   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   feed-  s    c         C   sA   y |  j  } Wn t k
 r  n X|  ` |  `  | j d d ƒ d  S(   NR^   i   (   Rg   t   AttributeErrorRh   Rr   (   R   Rq   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   close0  s    (   R   R   R   Rs   Ru   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRf      s   		t
   SlowParserc           B   s   e  Z d  Z d „  Z RS(   s/   Default XML parser (based on xmllib.XMLParser).c         C   s®   d d  l  } | j t j k r0 | j f t _ n  | j |  _ | j |  _ | j |  _	 | j |  _
 | j |  _ y | j j |  d d ƒWn! t k
 r© | j j |  ƒ n Xd  S(   Niÿÿÿÿt   accept_utf8i   (   t   xmllibt	   XMLParserRv   t	   __bases__Ro   t
   handle_xmlRi   t   unknown_starttagR   t   handle_datat   handle_cdataRk   t   unknown_endtagR   RK   (   R   Rp   Rx   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   <  s    (   R   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRv   9  s   t
   Marshallerc           B   s7  e  Z d  Z d d d „ Z i  Z d „  Z d „  Z d „  Z e e e	 <d „  Z
 e
 e e <e ru d „  Z e e e <n  d „  Z e e e <d	 „  Z e e e <e d
 „ Z e e e <e rÐ e d „ Z e e e <n  d „  Z e e e <e e e <e d „ Z e e e <e r"d „  Z e e e j <n  d „  Z  e  e e! <RS(   sv  Generate 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.
    i    c         C   s(   i  |  _  d  |  _ | |  _ | |  _ d  S(   N(   t   memoRb   R   R   t
   allow_none(   R   R   R‚   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   a  s    			c         C   s»   g  } | j  } |  j } t | t ƒ r_ | d ƒ | i | j d 6| j d 6| ƒ | d ƒ nF | d ƒ x/ | D]' } | d ƒ | | | ƒ | d ƒ qp W| d ƒ t j | d	 ƒ } | S(
   Ns   <fault>
R"   R#   s	   </fault>
s	   <params>
s   <param>
s	   </param>
s
   </params>
R^   (   t   appendt   _Marshaller__dumpR.   R!   R"   R#   R   t   join(   R   t   valuesR-   R,   t   dumpt   vt   result(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dumpsi  s"    		




c         C   s¹   y |  j  t | ƒ } Wn‹ t k
 r¤ y | j Wn t d t | ƒ ‚ n XxB t | ƒ j D]1 } | |  j  j ƒ  k r_ t d t | ƒ ‚ q_ q_ W|  j  t } n X| |  | | ƒ d  S(   Ns   cannot marshal %s objects(   t   dispatchRJ   t   KeyErrort   __dict__RK   t   __mro__t   keyst   InstanceType(   R   R+   R,   t   ft   type_(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __dump„  s    c         C   s#   |  j  s t d ‚ n  | d ƒ d  S(   Ns0   cannot marshal None unless allow_none is enableds   <value><nil/></value>(   R‚   RK   (   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_nil–  s    	c         C   sL   | t  k s | t k  r$ t d ‚ n  | d ƒ | t | ƒ ƒ | d ƒ d  S(   Ns   int exceeds XML-RPC limitss   <value><int>s   </int></value>
(   t   MAXINTt   MININTt   OverflowErrorRV   (   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_intœ  s
    
c         C   s.   | d ƒ | | r d p d ƒ | d ƒ d  S(   Ns   <value><boolean>t   1t   0s   </boolean></value>
(    (   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   dump_bool¦  s    
c         C   sR   | t  k s | t k  r$ t d ‚ n  | d ƒ | t t | ƒ ƒ ƒ | d ƒ d  S(   Ns   long int exceeds XML-RPC limitss   <value><int>s   </int></value>
(   R•   R–   R—   RV   t   int(   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   dump_long¬  s
    
c         C   s(   | d ƒ | t  | ƒ ƒ | d ƒ d  S(   Ns   <value><double>s   </double></value>
(   R   (   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_double´  s    
c         C   s(   | d ƒ | | | ƒ ƒ | d ƒ d  S(   Ns   <value><string>s   </string></value>
(    (   R   R+   R,   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_stringº  s    
c         C   s7   | d ƒ | | | ƒ j  |  j d ƒ ƒ | d ƒ d  S(   Ns   <value><string>t   xmlcharrefreplaces   </string></value>
(   R   R   (   R   R+   R,   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_unicodeÁ  s    
c         C   s}   t  | ƒ } | |  j k r' t d ‚ n  d  |  j | <|  j } | d ƒ x | D] } | | | ƒ qN W| d ƒ |  j | =d  S(   Ns"   cannot marshal recursive sequencess   <value><array><data>
s   </data></array></value>
(   R2   R�   RK   Rb   R„   (   R   R+   R,   t   iR‡   Rˆ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   dump_arrayÇ  s    	

c         C   s  t  | ƒ } | |  j k r' t d ‚ n  d  |  j | <|  j } | d ƒ x© | j ƒ  D]› \ } } | d ƒ t | ƒ t k r‹ | | ƒ } n? t rÁ t | ƒ t	 k rÁ | | ƒ j
 |  j d ƒ } n	 t d ‚ | d | ƒ | | | ƒ | d ƒ qT W| d ƒ |  j | =d  S(	   Ns%   cannot marshal recursive dictionariess   <value><struct>
s	   <member>
R    s   dictionary key must be strings   <name>%s</name>
s
   </member>
s   </struct></value>
(   R2   R�   RK   Rb   R„   t   itemsRJ   RD   R   t   UnicodeTypeR   R   (   R   R+   R,   R   R¢   R‡   t   kRˆ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_structÕ  s$    	

	
c         C   s(   | d ƒ | t  | ƒ ƒ | d ƒ d  S(   Ns   <value><dateTime.iso8601>s   </dateTime.iso8601></value>
(   RB   (   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_datetimeì  s    
c         C   sE   | j  t k r. | |  _ | j |  ƒ |  ` n |  j | j | ƒ d  S(   N(   RF   t   WRAPPERSR,   R   R§   R�   (   R   R+   R,   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   dump_instanceò  s
    		N("   R   R   R   Rb   R   R‹   RŠ   R„   R”   t   NoneTypeR˜   t   IntTypet   _bool_is_builtinR›   R   R�   t   LongTypeRž   t	   FloatTypeR   RŸ   RD   R   R¡   R¥   R£   R>   t   ListTypeR§   t   DictTypeR7   R¨   Rª   R�   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR€   T  s>   			
	
		
	

	


			t   Unmarshallerc           B   sz  e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z e	 j
 d „ Z d	 „  Z i  Z d
 „  Z e e d <d „  Z e e d <d „  Z e e d <e e d <e e d <d „  Z e e d <d „  Z e e d <e e d <d „  Z e e d <d „  Z e e d <d „  Z e e d <d „  Z e e d <d „  Z e e d  <d! „  Z e e d" <d# „  Z e e d$ <d% „  Z e e d& <RS('   s  Unmarshal 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).
    i    c         C   st   d  |  _ g  |  _ g  |  _ g  |  _ t |  _ d  |  _ d |  _ |  j j	 |  _	 | |  _
 | rp t rp t d ‚ n  d  S(   Ns   utf-8s$   the datetime module is not available(   Rb   t   _typet   _stackt   _markst   _dataR'   t   _valuet   _methodnamet	   _encodingRƒ   t   _use_datetimeR7   t
   ValueError(   R   t   use_datetime(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR     s    								c         C   sV   |  j  d  k s |  j r$ t ƒ  ‚ n  |  j  d k rI t |  j d �  ‚ n  t |  j ƒ S(   Nt   faulti    (   R³   Rb   Rµ   R    R!   R´   RZ   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRu     s
    c         C   s   |  j  S(   N(   R¸   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   getmethodname#  s    c         C   s   | |  _  d  S(   N(   R¹   (   R   R   t
   standalone(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRo   )  s    c         C   s{   | d k s | d k r4 |  j  j t |  j ƒ ƒ n  g  |  _ |  j rh | |  j k rh t d | ƒ ‚ n  | d k |  _ d  S(   Nt   arrayt   structs   unknown tag %rR+   (   Rµ   Rƒ   t   lenR´   R¶   R·   R‹   R    (   R   t   tagt   attrs(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRi   -  s    	c         C   s   |  j  j | ƒ d  S(   N(   R¶   Rƒ   (   R   t   text(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   6  s    c         C   sB   y |  j  | } Wn t k
 r$ n X| |  | |  j d ƒ ƒ Sd  S(   NR^   (   R‹   RŒ   R¶   (   R   RÃ   R…   R‘   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRk   9  s
    c         C   s6   y |  j  | } Wn t k
 r$ n X| |  | ƒ Sd  S(   N(   R‹   RŒ   (   R   RÃ   R   R‘   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   end_dispatchE  s
    c         C   s   |  j  d  ƒ d |  _ d  S(   Ni    (   Rƒ   Rb   R·   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   end_nilS  s    t   nilc         C   sN   | d k r |  j  t ƒ n% | d k r8 |  j  t ƒ n	 t d ‚ d |  _ d  S(   NRš   R™   s   bad boolean valuei    (   Rƒ   R'   R&   RK   R·   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   end_booleanX  s    	R6   c         C   s    |  j  t | ƒ ƒ d |  _ d  S(   Ni    (   Rƒ   Rœ   R·   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   end_intb  s    t   i4t   i8Rœ   c         C   s    |  j  t | ƒ ƒ d |  _ d  S(   Ni    (   Rƒ   t   floatR·   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   end_doublei  s    t   doublec         C   s>   |  j  r t | |  j  ƒ } n  |  j t | ƒ ƒ d |  _ d  S(   Ni    (   R¹   R   Rƒ   R   R·   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   end_stringn  s    	R   t   namec         C   s3   |  j  j ƒ  } |  j | g |  j | )d |  _ d  S(   Ni    (   Rµ   t   popR´   R·   (   R   R   t   mark(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   end_arrayv  s    RÀ   c         C   s~   |  j  j ƒ  } i  } |  j | } x< t d t | ƒ d ƒ D]" } | | d | t | | ƒ <q; W| g |  j | )d |  _ d  S(   Ni    i   i   (   Rµ   RÒ   R´   t   rangeRÂ   R   R·   (   R   R   RÓ   t   dictR¤   R¢   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   end_struct}  s     RÁ   c         C   s0   t  ƒ  } | j | ƒ |  j | ƒ d |  _ d  S(   Ni    (   R]   RX   Rƒ   R·   (   R   R   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   end_base64ˆ  s    	R_   c         C   s?   t  ƒ  } | j | ƒ |  j r. t | ƒ } n  |  j | ƒ d  S(   N(   RC   RX   Rº   R\   Rƒ   (   R   R   R+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   end_dateTime�  s
    		s   dateTime.iso8601c         C   s   |  j  r |  j | ƒ n  d  S(   N(   R·   RÐ   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   end_value—  s    	R+   c         C   s   d |  _  d  S(   Nt   params(   R³   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt
   end_paramsž  s    RÛ   c         C   s   d |  _  d  S(   NR½   (   R³   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   end_fault¢  s    R½   c         C   s4   |  j  r t | |  j  ƒ } n  | |  _ d |  _ d  S(   Nt
   methodName(   R¹   R   R¸   R³   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   end_methodName¦  s    		RÞ   (   R   R   R   R   Ru   R¾   Ro   Ri   R   R   R…   Rk   RÆ   R‹   RÇ   RÉ   RÊ   RÎ   RÐ   RÔ   R×   RØ   RÙ   RÚ   RÜ   RÝ   Rß   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR²     sN   								
	
	


	
	

	
		
	
	
	
	
	
	t   _MultiCallMethodc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   | |  _  | |  _ d  S(   N(   t   _MultiCallMethod__call_listt   _MultiCallMethod__name(   R   t	   call_listRÑ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ³  s    	c         C   s   t  |  j d |  j | f ƒ S(   Ns   %s.%s(   Rà   Rá   Râ   (   R   RÑ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __getattr__¶  s    c         G   s   |  j  j |  j | f ƒ d  S(   N(   Rá   Rƒ   Râ   (   R   t   args(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __call__¸  s    (   R   R   R   Rä   Ræ   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRà   °  s   		t   MultiCallIteratorc           B   s    e  Z d  Z d „  Z d „  Z RS(   sa   Iterates over the results of a multicall. Exceptions are
    raised in response to xmlrpc faults.c         C   s   | |  _  d  S(   N(   t   results(   R   Rè   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ¿  s    c         C   sl   |  j  | } t | ƒ t i  ƒ k r? t | d | d ƒ ‚ n) t | ƒ t g  ƒ k r_ | d St d ‚ d  S(   NR"   R#   i    s#   unexpected type in multicall result(   Rè   RJ   R!   R»   (   R   R¢   t   item(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __getitem__Â  s    (   R   R   R   R   Rê   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRç   »  s   	t	   MultiCallc           B   s8   e  Z d  Z d „  Z d „  Z e Z d „  Z d „  Z RS(   s~  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()
    c         C   s   | |  _  g  |  _ d  S(   N(   t   _MultiCall__servert   _MultiCall__call_list(   R   t   server(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   Ý  s    	c         C   s   d t  |  ƒ S(   Ns   <MultiCall at %x>(   R2   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   á  s    c         C   s   t  |  j | ƒ S(   N(   Rà   Rí   (   R   RÑ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRä   æ  s    c         C   sT   g  } x2 |  j  D]' \ } } | j i | d 6| d 6ƒ q Wt |  j j j | ƒ ƒ S(   NRÞ   RÛ   (   Rí   Rƒ   Rç   Rì   t   systemt	   multicall(   R   t   marshalled_listRÑ   Rå   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRæ   é  s    (   R   R   R   R   R   R   Rä   Ræ   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRë   Ì  s   			c         C   s°   |  r t  r t d ‚ n  t ra t ra |  r4 t } n t } t t t t | t	 ƒ } t | ƒ } nE t
 d |  ƒ } t r… t | ƒ } n! t rš t | ƒ } n t | ƒ } | | f S(   s¥   getparser() -> parser, unmarshaller

    Create an instance of the fastest available parser, and attach it
    to an unmarshalling object.  Return both objects.
    s$   the datetime module is not availableR¼   (   R7   R»   t
   FastParsert   FastUnmarshallerR\   RY   R&   R'   Rc   R!   R²   Rf   Rv   (   R¼   t
   mkdatetimeRp   Rq   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   getparserù  s    	c         C   sS  t  |  t ƒ s* t  |  t ƒ s* t d ƒ ‚ t  |  t ƒ rB d } n6 | rx t  |  t ƒ rx t |  ƒ d k sx t d ƒ ‚ n  | s‡ d } n  t rœ t | ƒ } n t | | ƒ } | j |  ƒ } | d k rÙ d t | ƒ } n d } | r$t  | t	 ƒ s	| j
 | d ƒ } n  | d | d	 | d
 f } n | r?| d | d f } n | St j | d ƒ S(   sÚ  data [,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 8-bit strings in the data structure are assumed to use the
    packet encoding.  Unicode strings are automatically converted,
    where necessary.
    s(   argument must be tuple or Fault instancei   s"   response tuple must be a singletons   utf-8s$   <?xml version='1.0' encoding='%s'?>
s   <?xml version='1.0'?>
R    s   <methodCall>
<methodName>s   </methodName>
s   </methodCall>
s   <methodResponse>
s   </methodResponse>
R^   (   R.   R>   R!   t   AssertionErrorRÂ   t   FastMarshallerR€   RŠ   RV   RD   R   R   R…   (   RÛ   t
   methodnamet   methodresponseR   R‚   t   mR   t	   xmlheader(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRŠ     s<    !		!	c         C   sB   t  d | ƒ \ } } | j |  ƒ | j ƒ  | j ƒ  | j ƒ  f S(   sò   data -> 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¼   (   Rõ   Rs   Ru   R¾   (   R   R¼   t   pt   u(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   loadsn  s    	
c         C   sj   t  s t ‚ n  t j ƒ  } t  j d d d | d d ƒ } | j |  ƒ | j ƒ  | j ƒ  } | j ƒ  | S(   sh   data -> gzip encoded data

    Encode data using the gzip content encoding as described in RFC 1952
    t   modet   wbt   fileobjt   compressleveli   (   t   gzipt   NotImplementedErrorRa   t   GzipFileR,   Ru   t   getvalue(   R   R‘   t   gzft   encoded(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   gzip_encode„  s    	

i  @c         C   sÍ   t  s t ‚ n  t j |  ƒ } t  j d d d | ƒ } y2 | d k  rT | j ƒ  } n | j | d ƒ } Wn t k
 r‡ t d ƒ ‚ n X| j ƒ  | j ƒ  | d k rÉ t | ƒ | k rÉ t d ƒ ‚ n  | S(   sr   gzip encoded data -> unencoded data

    Decode data using the gzip content encoding as described in RFC 1952
    Rÿ   t   rbR  i    i   s   invalid datas#   max gzipped payload length exceeded(	   R  R  Ra   R  t   readt   IOErrorR»   Ru   RÂ   (   R   t
   max_decodeR‘   R  t   decoded(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   gzip_decodeŸ  s    	

t   GzipDecodedResponsec           B   s    e  Z d  Z d „  Z d „  Z RS(   sh   a file-like object to decode a response encoded with the gzip
    method, as described in RFC 1952.
    c         C   sJ   t  s t ‚ n  t j | j ƒ  ƒ |  _ t  j j |  d d d |  j ƒd  S(   NRÿ   R
  R  (   R  R  Ra   R  t   stringioR  R   (   R   t   response(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   À  s    	c         C   s)   z t  j j |  ƒ Wd  |  j j ƒ  Xd  S(   N(   R  R  Ru   R  (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRu   È  s    (   R   R   R   R   Ru   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR  ¼  s   	t   _Methodc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   | |  _  | |  _ d  S(   N(   t   _Method__sendt   _Method__name(   R   t   sendRÑ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   Õ  s    	c         C   s   t  |  j d |  j | f ƒ S(   Ns   %s.%s(   R  R  R  (   R   RÑ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRä   Ø  s    c         G   s   |  j  |  j | ƒ S(   N(   R  R  (   R   Rå   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRæ   Ú  s    (   R   R   R   Rä   Ræ   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR  Ò  s   		t	   Transportc           B   s™   e  Z d  Z d e Z e Z d Z d d „ Z	 d d „ Z
 d d „ Z d „  Z d „  Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z RS(   s1   Handles an HTTP transaction to an XML-RPC server.s'   xmlrpclib.py/%s (by www.pythonware.com)i    c         C   s   | |  _  d |  _ g  |  _ d  S(   N(   NN(   Rº   Rb   t   _connectiont   _extra_headers(   R   R¼   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   ñ  s    		c         C   s”   x� d D]… } y |  j  | | | | ƒ SWq t j k
 rl } | sc | j t j t j t j f k rŒ ‚  qŒ q t j k
 r‹ | rŒ ‚  qŒ q Xq Wd  S(   Ni    i   (   i    i   (	   t   single_requestt   sockett   errort   errnot
   ECONNRESETt   ECONNABORTEDt   EPIPEt   httplibt   BadStatusLine(   R   t   hostt   handlert   request_bodyt   verboseR¢   t   e(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   requestÿ  s    '	c         C   s  |  j  | ƒ } | r% | j d ƒ n  y{ |  j | | | ƒ |  j | | ƒ |  j | ƒ |  j | | ƒ | j d t ƒ } | j d k rŸ | |  _	 |  j
 | ƒ SWn1 t k
 r¶ ‚  n t k
 rÓ |  j ƒ  ‚  n X| j d d ƒ ró | j ƒ  n  t | | | j | j | j ƒ ‚ d  S(   Ni   t	   bufferingiÈ   s   content-lengthi    (   t   make_connectiont   set_debuglevelt   send_requestt	   send_hostt   send_user_agentt   send_contentt   getresponseR&   t   statusR&  t   parse_responseR!   t	   ExceptionRu   t	   getheaderR  R   t   reasont   msg(   R   R#  R$  R%  R&  t   hR  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR    s.    	
c         C   s   t  d |  j ƒ S(   NR¼   (   Rõ   Rº   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRõ   ;  s    c         C   s³   i  } t  | t ƒ r$ | \ } } n  d d  l } | j | ƒ \ } } | r  d d  l } | j | j | ƒ ƒ } t j t j	 | ƒ d ƒ } d d | f g } n d  } | | | f S(   NiÿÿÿÿR^   t   Authorizations   Basic (   R.   R>   t   urllibt	   splituserR_   t   encodestringt   unquoteR   R…   t   splitRb   (   R   R#  t   x509R9  t   authR_   t   extra_headers(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   get_host_infoI  s    c         C   se   |  j  r' | |  j  d k r' |  j  d S|  j | ƒ \ } |  _ } | t j | ƒ f |  _  |  j  d S(   Ni    i   (   R  RA  R  R!  t   HTTPConnection(   R   R#  t   chostR>  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR*  d  s
    c         C   s/   |  j  \ } } | r+ d |  _  | j ƒ  n  d  S(   N(   NN(   R  Rb   Ru   (   R   R#  t
   connection(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRu   t  s    	c         C   sL   |  j  r8 t r8 | j d | d t ƒ| j d d ƒ n | j d | ƒ d  S(   Nt   POSTt   skip_accept_encodings   Accept-EncodingR  (   t   accept_gzip_encodingR  t
   putrequestR&   t	   putheader(   R   RD  R$  R%  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR,  �  s    c         C   s[   |  j  } | rW t | t ƒ r- | j ƒ  } n  x' | D] \ } } | j | | ƒ q4 Wn  d  S(   N(   R  R.   R±   R¤   RI  (   R   RD  R#  R@  t   keyR+   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR-  ’  s    	c         C   s   | j  d |  j ƒ d  S(   Ns
   User-Agent(   RI  t
   user_agent(   R   RD  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR.  Ÿ  s    c         C   s†   | j  d d ƒ |  j d  k	 rY |  j t | ƒ k  rY t rY | j  d d ƒ t | ƒ } n  | j  d t t | ƒ ƒ ƒ | j | ƒ d  S(   Ns   Content-Types   text/xmls   Content-EncodingR  s   Content-Length(   RI  t   encode_thresholdRb   RÂ   R  R	  RV   t
   endheaders(   R   RD  R%  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR/  ¨  s    c         C   sÌ   t  | d ƒ r? | j d d ƒ d k r6 t | ƒ } qE | } n | } |  j ƒ  \ } } xE | j d ƒ } | ss Pn  |  j rŽ d Gt | ƒ GHn  | j | ƒ qZ W| | k	 r¸ | j ƒ  n  | j ƒ  | j ƒ  S(   NR4  s   Content-EncodingR^   R  i   s   body:(	   RI   R4  R  Rõ   R  R&  R   Rs   Ru   (   R   R  t   streamRü   Rý   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR2  »  s"    		
N(   R   R   R   t   __version__RK  R&   RG  Rb   RL  R   R(  R  Rõ   RA  R*  Ru   R,  R-  R.  R/  R2  (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR  ã  s    
'									t   SafeTransportc           B   s&   e  Z d  Z d d d „ Z d „  Z RS(   s2   Handles an HTTPS transaction to an XML-RPC server.i    c         C   s    t  j |  d | ƒ| |  _ d  S(   NR¼   (   R  R   t   context(   R   R¼   RQ  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   Ý  s    c         C   s¨   |  j  r' | |  j  d k r' |  j  d Sy t j } Wn t k
 rS t d ƒ ‚ nQ X|  j | ƒ \ } |  _ } | | | d  d |  j | p� i  �f |  _  |  j  d Sd  S(   Ni    i   s-   your version of httplib doesn't support HTTPSRQ  (	   R  R!  t   HTTPSConnectionRt   R  RA  R  Rb   RQ  (   R   R#  t   HTTPSRC  R>  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR*  ã  s    *N(   R   R   R   Rb   R   R*  (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRP  Ú  s   t   ServerProxyc           B   s\   e  Z d  Z d d d d d d d „ Z d „  Z d „  Z d „  Z e Z d „  Z	 d „  Z
 RS(	   s…  uri [,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.
    i    c   
      C   sú   t  r' t | t  ƒ r' | j d ƒ } n  d d  l } | j | ƒ \ }	 } |	 d	 k r` t d ‚ n  | j | ƒ \ |  _ |  _ |  j s� d |  _ n  | d  k rÒ |	 d k rÀ t
 d | d | ƒ } qÒ t d | ƒ } n  | |  _ | |  _ | |  _ | |  _ d  S(
   Ns
   ISO-8859-1iÿÿÿÿt   httpt   httpss   unsupported XML-RPC protocols   /RPC2R¼   RQ  (   RU  RV  (   R   R.   R   R9  t	   splittypeR  t	   splithostt   _ServerProxy__hostt   _ServerProxy__handlerRb   RP  R  t   _ServerProxy__transportt   _ServerProxy__encodingt   _ServerProxy__verboset   _ServerProxy__allow_none(
   R   t   urit	   transportR   R&  R‚   R¼   RQ  R9  RJ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR     s"    				c         C   s   |  j  j ƒ  d  S(   N(   R[  Ru   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   __close5  s    c         C   sk   t  | | d |  j d |  j ƒ} |  j j |  j |  j | d |  j ƒ} t | ƒ d k rg | d } n  | S(   NR   R‚   R&  i   i    (	   RŠ   R\  R^  R[  R(  RY  RZ  R]  RÂ   (   R   Rø   RÛ   R(  R  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt	   __request8  s    	c         C   s   d |  j  |  j f S(   Ns   <ServerProxy for %s%s>(   RY  RZ  (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyR   J  s    c         C   s   t  |  j | ƒ S(   N(   R  t   _ServerProxy__request(   R   RÑ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRä   R  s    c         C   s=   | d k r |  j  S| d k r& |  j St d | f ƒ ‚ d S(   s|   A workaround to get special attributes on the ServerProxy
           without interfering with the magic __getattr__
        Ru   R`  s   Attribute %r not foundN(   t   _ServerProxy__closeR[  Rt   (   R   t   attr(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRæ   Y  s
    N(   R   R   R   Rb   R   Rd  Rc  R   R   Rä   Ræ   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyRT    s   					t   __main__s   http://localhost:8000i   i	   i   i   i   t   ERRORl        l   ÿÿ l        lýÿÿÿ     (    (    (    (    (    (    (    (    (    (    (    (    (    (b   R   t   reR   R?   R)   t   typesR  R  R!  R  t   ImportErrorRb   R   t	   NameErrorR7   R'   RF   R   R­   t   compilet   searchR   R   R   R   RO  R•   R–   t   PARSE_ERRORt   SERVER_ERRORt   APPLICATION_ERRORt   SYSTEM_ERRORt   TRANSPORT_ERRORt   NOT_WELLFORMED_ERRORt   UNSUPPORTED_ENCODINGt   INVALID_ENCODING_CHARt   INVALID_XMLRPCt   METHOD_NOT_FOUNDt   INVALID_METHOD_PARAMSt   INTERNAL_ERRORR3  R   R   R    R!   t   sysR%   R�   t   mod_dictR   R6   R(   R&   RB   RC   RY   R\   R_   t	   cStringIORa   R]   Rc   R©   t
   _xmlrpclibt   ParserRò   R²   Ró   Rt   R€   R÷   t   xml.parsersRd   RI   Rf   Rv   Rà   Rç   Rë   Rõ   RŠ   Rþ   R	  R  R  t   objectR  R  R  RP  RT  t   ServerRî   t   multit   powt   addR  Rˆ   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/xmlrpclib.pyt   <module>Š   sì   0




	

	T		
		

®®-&	N	%÷*a