ó
Xé?_c           @   sP  d  Z  d d l m Z d d l m Z m Z m Z m Z d d l m Z m	 Z	 m
 Z
 m Z d d l m Z m Z m Z m Z e j j ƒ  Z d) e d <d* e d <d d l Z d d l Z d „  Z d „  Z d „  Z d „  Z d e f d „  ƒ  YZ e j d ƒ Z d e f d „  ƒ  YZ e j d ƒ Z d „  Z d „  Z  d „  Z! d d d d „ Z" e j d ƒ Z# e$ d d „ Z% d e& f d  „  ƒ  YZ' e e	 k rûd! j( g  e) d" ƒ D] Z* e+ e* ƒ ^ q¥ƒ Z, d! j( g  e) d# ƒ D] Z* e+ e* ƒ ^ qÓƒ e+ d$ ƒ Z- n% d Z, e/ e0 d# ƒ ƒ e/ d$ g ƒ Z- d% e' f d& „  ƒ  YZ1 d' e f d( „  ƒ  YZ2 d S(+   s@  HTTP library functions.

This module contains functions for building an HTTP application
framework: any one, not just one whose name starts with "Ch". ;) If you
reference any modules from some popular framework inside *this* module,
FuManChu will personally hang you up by your thumbs and submit you
to a public caning.
iÿÿÿÿ(   t
   b2a_base64(   t   BaseHTTPRequestHandlert   HTTPDatet   ntobt   ntou(   t
   basestringt   bytestrt	   iteritemst	   nativestr(   t   reversedt   sortedt
   unicodestrt
   unquote_qss   Internal Server Errors^   The server encountered an unexpected condition which prevented it from fulfilling the request.iô  s   Service Unavailablesq   The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.i÷  Nc          G   sW   d j  g  |  D] } | r | ^ q ƒ } x" d | k rL | j d d ƒ } q+ W| pV d S(   s°   Return the given path \*atoms, joined into a single URL.

    This will correctly join a SCRIPT_NAME and PATH_INFO into the
    original URL, even if either atom is blank.
    t   /s   //(   t   joint   replace(   t   atomst   xt   url(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   urljoin   s    (c          G   su   t  d ƒ j g  |  D] } | r | ^ q ƒ } x4 t  d ƒ | k rd | j t  d ƒ t  d ƒ ƒ } q1 W| pt t  d ƒ S(   s¯   Return the given path *atoms, joined into a single URL.

    This will correctly join a SCRIPT_NAME and PATH_INFO into the
    original URL, even if either atom is blank.
    R   s   //(   R   R   R   (   R   R   R   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   urljoin_bytes*   s    ."c         C   s   t  |  d ƒ t  |  d ƒ f S(   s9   Return a protocol tuple from the given 'HTTP/x.y' string.i   i   (   t   int(   t   protocol_str(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   protocol_from_http7   s    c   	      C   s4  |  s
 d Sg  } |  j d d ƒ \ } } x| j d ƒ D]ô } g  | j d d ƒ D] } | j ƒ  ^ qQ \ } } | rÝ | sˆ | d } n  t | ƒ t | ƒ } } | | k r³ q8 n  | | k  rÃ d S| j | | d f ƒ q8 | sç d St | ƒ | k r| j d | f ƒ q8 | j | t | ƒ | f ƒ q8 W| S(   s£  Return a list of (start, stop) indices from a Range header, or None.

    Each (start, stop) tuple will be composed of two ints, which are suitable
    for use in a slicing operation. That is, the header "Range: bytes=3-6",
    if applied against a Python string, is requesting resource[3:7]. This
    function will return the list [(3, 7)].

    If this function returns an empty list, you should return HTTP 416.
    t   =i   t   ,t   -i    N(   t   Nonet   splitt   stripR   t   append(	   t   headervaluet   content_lengtht   resultt	   bytesunitt
   byterangest   brangeR   t   startt   stop(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt
   get_ranges<   s*    1	!t   HeaderElementc           B   sq   e  Z d  Z d	 d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 e e
 ƒ Z
 d „  Z e e ƒ Z RS(
   s@   An element (with parameters) from an HTTP header's element list.c         C   s+   | |  _  | d  k r i  } n  | |  _ d  S(   N(   t   valueR   t   params(   t   selfR)   R*   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   __init__z   s    		c         C   s   t  |  j | j ƒ S(   N(   t   cmpR)   (   R+   t   other(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   __cmp__€   s    c         C   s   |  j  | j  k  S(   N(   R)   (   R+   R.   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   __lt__ƒ   s    c         C   sR   g  t  |  j ƒ D] \ } } d | | f ^ q } t d |  j d j | ƒ f ƒ S(   Ns   ;%s=%ss   %s%st    (   R   R*   t   strR)   R   (   R+   t   kt   vt   p(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   __str__†   s    2c         C   s   t  |  j ƒ  ƒ S(   N(   R   R6   (   R+   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt	   __bytes__Š   s    c         C   s   t  |  j ƒ  ƒ S(   N(   R   R6   (   R+   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   __unicode__   s    c         C   sâ   g  |  j  d ƒ D] } | j ƒ  r | j ƒ  ^ q } | sC d } n | j d ƒ j ƒ  } i  } xw | D]o } g  | j  d d ƒ D] } | j ƒ  r~ | j ƒ  ^ q~ } | j d ƒ } | rÄ | d } n d } | | | <qe W| | f S(   s7   Transform 'token;key=val' to ('token', {'key': 'val'}).t   ;R1   i    R   i   (   R   R   t   pop(   t
   elementstrR   R   t   initial_valueR*   t   atomt   keyt   val(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   parse   s    4	7c         C   s"   |  j  | ƒ \ } } |  | | ƒ S(   s@   Construct an instance from a string of the form 'token;key=val'.(   R@   (   t   clsR;   t   ivalR*   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   from_str¥   s    N(   t   __name__t
   __module__t   __doc__R   R,   R/   R0   R6   R7   R8   R@   t   staticmethodRC   t   classmethod(    (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR(   v   s   							s   ; *q *=t   AcceptElementc           B   sP   e  Z d  Z d „  Z e e ƒ Z d „  Z e e d d ƒZ d „  Z d „  Z RS(   s·  An element (with parameters) from an Accept* header's element list.

    AcceptElement objects are comparable; the more-preferred object will be
    "less than" the less-preferred object. They are also therefore sortable;
    if you sort a list of AcceptElement objects, they will be listed in
    priority order; the most preferred value will be first. Yes, it should
    have been the other way around, but it's too late to fix now.
    c         C   sŠ   d  } t j | d ƒ } | j d ƒ j ƒ  } | rO t j | d j ƒ  ƒ } n  |  j | ƒ \ } } | d  k	 r} | | d <n  |  | | ƒ S(   Ni   i    t   q(   R   t   q_separatorR   R:   R   R(   RC   R@   (   RA   R;   t   qvalueR   t   media_ranget
   media_typeR*   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyRC   º   s    c         C   s:   |  j  j d d ƒ } t | t ƒ r0 | j } n  t | ƒ S(   NRJ   t   1(   R*   t   gett
   isinstanceR(   R)   t   float(   R+   R?   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyRL   Ë   s    t   docs'   The qvalue, or priority, of this value.c         C   sC   t  |  j | j ƒ } | d k r? t  t |  ƒ t | ƒ ƒ } n  | S(   Ni    (   R-   RL   R2   (   R+   R.   t   diff(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR/   Ò   s    c         C   s<   |  j  | j  k r( t |  ƒ t | ƒ k  S|  j  | j  k  Sd  S(   N(   RL   R2   (   R+   R.   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR0   Ø   s    (	   RD   RE   RF   RC   RH   RL   t   propertyR/   R0   (    (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyRI   ¯   s   				s   ,(?=(?:[^"]*"[^"]*")*[^"]*$)c         C   s‰   | s
 g  Sg  } x` t  j | ƒ D]O } |  j d ƒ sA |  d k rS t j | ƒ } n t j | ƒ } | j | ƒ q  Wt t t	 | ƒ ƒ ƒ S(   sM   Return a sorted HeaderElement list from a comma-separated header string.
    t   Acceptt   TE(
   t   RE_HEADER_SPLITR   t
   startswithRI   RC   R(   R   t   listR	   R
   (   t	   fieldnamet
   fieldvalueR!   t   elementt   hv(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   header_elementsß   s    c         C   s   y d d l  m } Wn! t k
 r7 d d l m } n X| |  ƒ } d } x< | D]4 \ } } | d k	 r{ | j | ƒ } n  | | 7} qQ W| S(   sB   Decode :rfc:`2047` TEXT (e.g. "=?utf-8?q?f=C3=BCr?=" -> "f\xfcr").iÿÿÿÿ(   t   decode_headerR1   N(   t   email.headerR`   t   ImportErrort   email.HeaderR   t   decode(   R)   R`   R   t   decodedvalueR=   t   charset(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   decode_TEXTð   s    c         C   s!  |  s d }  n  t  |  ƒ }  |  j d d ƒ } t | ƒ d k rQ | \ } d	 } n | \ } } | j ƒ  } y t | ƒ } Wn' t k
 r¢ t d t | ƒ ƒ ‚ n X| d k  s» | d k rÔ t d t | ƒ ƒ ‚ n  | t k rï d
 \ } } n t | \ } } | d	 k r| } n  | | | f S(   s÷   Return legal HTTP status Code, Reason-phrase and Message.

    The status arg must be an int, or a str that begins with an int.

    If status is an int, or a str and no reason-phrase is supplied,
    a default reason-phrase will be provided.
    iÈ   t    i   s8   Illegal response status from server (%s is non-numeric).id   iW  s9   Illegal response status from server (%s is out of range).R1   N(   R1   R1   (	   R2   R   t   lenR   R   R   t
   ValueErrort   reprt   response_codes(   t   statust   partst   codet   reasont   default_reasont   message(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   valid_status   s.    					i    s   utf-8c         C   sS  g  |  j  d ƒ D]" } | j  d ƒ D] } | ^ q# q } i  } x| D]} | r_ | r_ qE n  | j  d d ƒ }	 t |	 ƒ d k r» | rŸ t d | f ƒ ‚ n  | rE |	 j d ƒ q» qE n  t |	 d ƒ sÑ | rE t |	 d | ƒ }
 t |	 d | ƒ } |
 | k r>t | |
 t ƒ s*| |
 g | |
 <n  | |
 j | ƒ qK| | |
 <qE qE W| S(	   sž  Parse a query given as a string argument.

    Arguments:

    qs: URL-encoded query string to be parsed

    keep_blank_values: flag indicating whether blank values in
        URL encoded queries should be treated as blank strings.  A
        true value indicates that blanks should be retained as blank
        strings.  The default false value indicates that blank values
        are to be ignored and treated as if they were  not included.

    strict_parsing: flag indicating what to do with parsing errors. If
        false (the default), errors are silently ignored. If true,
        errors raise a ValueError exception.

    Returns a dict, as G-d intended.
    t   &R9   R   i   i   s   bad query field: %rR1   i    (   R   Ri   Rj   R   R   RQ   RZ   (   t   qst   keep_blank_valuest   strict_parsingt   encodingt   s1t   s2t   pairst   dt
   name_valuet   nvt   nameR)   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt	   _parse_qs0  s*    8s   [0-9]+,[0-9]+c         C   sb   t  j |  ƒ rI |  j d ƒ } i t | d ƒ d 6t | d ƒ d 6} n t |  | d | ƒ} | S(   sè   Build a params dictionary from a query_string.

    Duplicate key/value pairs in the provided query_string will be
    returned as {'key': [val1, val2, ...]}. Single key/values will
    be returned as strings: {'key': 'value'}.
    R   i    R   i   t   yRx   (   t   image_map_patternt   matchR   R   R€   (   t   query_stringRv   Rx   t   pm(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   parse_query_string`  s
    +t   CaseInsensitiveDictc           B   s   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d d „ Z e	 i  d ƒ rW d „  Z
 n  d „  Z d d	 „ Z e e ƒ Z d d
 „ Z d „  Z RS(   s]   A case-insensitive dict subclass.

    Each key is changed on entry to str(key).title().
    c         C   s   t  j |  t | ƒ j ƒ  ƒ S(   N(   t   dictt   __getitem__R2   t   title(   R+   R>   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR‰   x  s    c         C   s#   t  j |  t | ƒ j ƒ  | ƒ d  S(   N(   Rˆ   t   __setitem__R2   RŠ   (   R+   R>   R)   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR‹   {  s    c         C   s    t  j |  t | ƒ j ƒ  ƒ d  S(   N(   Rˆ   t   __delitem__R2   RŠ   (   R+   R>   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyRŒ   ~  s    c         C   s   t  j |  t | ƒ j ƒ  ƒ S(   N(   Rˆ   t   __contains__R2   RŠ   (   R+   R>   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR     s    c         C   s   t  j |  t | ƒ j ƒ  | ƒ S(   N(   Rˆ   RP   R2   RŠ   (   R+   R>   t   default(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyRP   „  s    t   has_keyc         C   s   t  | ƒ j ƒ  |  k S(   N(   R2   RŠ   (   R+   R>   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR   ˆ  s    c         C   s5   x. | j  ƒ  D]  } | | |  t | ƒ j ƒ  <q Wd  S(   N(   t   keysR2   RŠ   (   R+   t   ER3   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   update‹  s    c         C   s4   |  ƒ  } x$ | D] } | | t  | ƒ j ƒ  <q W| S(   N(   R2   RŠ   (   RA   t   seqR)   t   newdictR3   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   fromkeys  s    	c         C   sA   t  | ƒ j ƒ  } y |  | SWn t k
 r< | |  | <| SXd  S(   N(   R2   RŠ   t   KeyError(   R+   R>   R   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt
   setdefault–  s    
c         C   s   t  j |  t | ƒ j ƒ  | ƒ S(   N(   Rˆ   R:   R2   RŠ   (   R+   R>   RŽ   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR:   ž  s    N(   RD   RE   RF   R‰   R‹   RŒ   R   R   RP   t   hasattrR   R’   R•   RH   R—   R:   (    (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR‡   q  s   					R1   i   i    i   t	   HeaderMapc           B   sh   e  Z d  Z d Z d g Z e Z d „  Z d „  Z d „  Z	 d „  Z
 e e
 ƒ Z
 d „  Z e e ƒ Z RS(	   s  A dict subclass for HTTP request and response headers.

    Each key is changed on entry to str(key).title(). This allows headers
    to be case-insensitive and avoid duplicates.

    Values are header values (decoded according to :rfc:`2047` if necessary).
    i   s
   ISO-8859-1c         C   s.   t  | ƒ j ƒ  } |  j | ƒ } t | | ƒ S(   s<   Return a sorted list of HeaderElements for the given header.(   R2   RŠ   RP   R_   (   R+   R>   R)   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   elementsÄ  s    c         C   s#   g  |  j  | ƒ D] } | j ^ q S(   sA   Return a sorted list of HeaderElement.value for the given header.(   Rš   R)   (   R+   R>   t   e(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   valuesÊ  s    c         C   s   t  |  j |  j ƒ  ƒ ƒ S(   s3   Transform self into a list of (name, value) tuples.(   RZ   t   encode_header_itemst   items(   R+   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   outputÎ  s    c         c   sª   x£ | D]› \ } } t  | t ƒ r4 |  j | ƒ } n  t  | t ƒ sR t | ƒ } n  t  | t ƒ rs |  j | ƒ } n  | j t t ƒ } | j t t ƒ } | | f Vq Wd S(   s€   
        Prepare the sequence of name, value tuples into a form suitable for
        transmitting on the wire for HTTP.
        N(   RQ   R   t   encodeR   R2   t	   translatet   header_translate_tablet   header_translate_deletechars(   RA   t   header_itemsR3   R4   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR   Ò  s    				c         C   s­   x9 |  j  D]. } y | j | ƒ SWq
 t k
 r7 q
 q
 Xq
 W|  j d k r |  j r t | j d ƒ ƒ } t d ƒ | j t d ƒ ƒ t d ƒ St d | |  j  f ƒ ‚ d S(	   s?   Return the given header name or value, encoded for HTTP output.i   s   utf-8s
   =?utf-8?b?s   
s   ?=s>   Could not encode header part %r using any of the encodings %r.N(   i   i   (	   t	   encodingsR    t   UnicodeEncodeErrort   protocolt   use_rfc_2047R    R   R   Rj   (   RA   R4   t   enc(    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR    ë  s    '(   i   i   (   RD   RE   RF   R§   R¥   t   TrueR¨   Rš   Rœ   RŸ   R   RH   R    (    (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR™   °  s   						t   Hostc           B   s5   e  Z d  Z d Z d Z d Z d d „ Z d „  Z RS(   s´   An internet address.

    name
        Should be the client's host name. If not available (because no DNS
        lookup is performed), the IP address should be used instead.

    s   0.0.0.0iP   s   unknown.tldc         C   s4   | |  _  | |  _ | d  k r' | } n  | |  _ d  S(   N(   t   ipt   portR   R   (   R+   R¬   R­   R   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR,     s
    			c         C   s   d |  j  |  j |  j f S(   Ns   httputil.Host(%r, %r, %r)(   R¬   R­   R   (   R+   (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   __repr__  s    N(	   RD   RE   RF   R¬   R­   R   R   R,   R®   (    (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyR«     s   (   s   Internal Server Errors^   The server encountered an unexpected condition which prevented it from fulfilling the request.(   s   Service Unavailablesq   The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.(3   RF   t   binasciiR    t   cherrypy._cpcompatR   R   R   R   R   R   R   R   R	   R
   R   R   t	   responsest   copyRl   t   ret   urllibR   R   R   R'   t   objectR(   t   compileRK   RI   RX   R_   Rg   Rs   R€   R‚   Rª   R†   Rˆ   R‡   R   t   xranget   it   chrR¢   R£   R   t   bytest   rangeR™   R«   (    (    (    s|   /local/mnt/workspace/CRMBuilds/Saipan.LA.2.0-00145-STD.PROD-1_20200821_083004/b/common/sectools/ext/cherrypy/lib/httputil.pyt   <module>   sD   """ 
 
				:6/			0-6.5R