
    rf
                     `    d dl mZ d dlmZ d dlmZmZmZmZm	Z	m
Z
 d Z G d de          ZdS )    )unicode_literals)	BaseCodec)DocumentLinkArrayObjectErrorFieldc                    t          | t                    rad                    d |                                 D                       }dt	          | j                  dt	          | j                  d|dS t          | t                    rLd                    d |                                 D                       }dt	          | j                  d|dS t          | t                    r4d	d                    d
 |                                 D                       z  S t          | t                    r"dd                    d | D                       z  S t          | t                    rdt	          | j                  z  }| j        r|dt	          | j                  z  z  }| j        r|dt	          | j                  z  z  }| j        r|dt	          | j                  z  z  }| j        r|dt	          | j                  z  z  }| j        r,d                    d | j        D                       }|d|z  z  }d|z  S t          | t                     rwt	          | j                  }| j        s	| j        s|S | j        r|dz  }| j        r|dt	          | j                  z  z  }| j        r|dt	          | j                  z  z  }d|z  S t	          |           S )Nz, c                 V    g | ]&\  }}t          |          d t          |          'S z: repr_to_repr.0keyvalues      R/var/www/html/software/conda/lib/python3.11/site-packages/coreapi/codecs/python.py
<listcomp>z_to_repr.<locals>.<listcomp>   C     
 
 
U S				8E???3
 
 
    zDocument(url=z, title=z, content={z})c                 V    g | ]&\  }}t          |          d t          |          'S r   r   r   s      r   r   z_to_repr.<locals>.<listcomp>   r   r   zError(title=z{%s}c                 V    g | ]&\  }}t          |          d t          |          'S r   r   r   s      r   r   z_to_repr.<locals>.<listcomp>   sC     #
 #
 #
U S				8E???3#
 #
 #
r   z[%s]c                 ,    g | ]}t          |          S  r   )r   r   s     r   r   z_to_repr.<locals>.<listcomp>#   s+     #
 #
 #
 %HUOO#
 #
 #
r   zurl=%sz, action=%sz, encoding=%sz, transform=%sz, description=%sc              3   4   K   | ]}t          |          V  d S )Nr   )r   items     r   	<genexpr>z_to_repr.<locals>.<genexpr>2   s(      #K#KtHTNN#K#K#K#K#K#Kr   z, fields=[%s]zLink(%s)z, required=Truez, location=%sz, schema=%sz	Field(%s))
isinstancer   joinitemsr   urltitler	   r   r   r   actionencoding	transformdescriptionfieldsr
   namerequiredlocationschema)nodecontentargsfields_reprs       r   r   r   	   s:   $!! 6")) 
 
"jjll
 
 
  
 NNNND,,,,ggg
 	
 
D%	 	  -")) 
 
"jjll
 
 
  
 ggg
 	
 
D&	!	! $"		 #
 #
"jjll#
 #
 #
    	
 
D%	 	  "		 #
 #
)-#
 #
 #
    	 
D$		 "$tx..(; 	6MD$5$555D= 	:Od4=&9&999D> 	<$tDN';';;;D 	@&d.>)?)???D; 	2))#K#Kt{#K#K#KKKKOk11DD  	D%	 	  
"DI} 	T] 	K= 	&%%D= 	:Od4=&9&999D; 	6MD$5$555DT!!::r   c                       e Zd ZdZdZd ZdS )PythonCodeczI
    A Python representation of a Document, for use with '__repr__'.
    ztext/pythonc                     t          |t                    rdt          |          z  S t          |t                    rdt          |          z  S t          |          S )Nz
Object(%s)z	Array(%s))r!   r   r   r   )selfdocumentoptionss      r   encodezPythonCodec.encodeK   s\     h'' 	4(8"4"444%(( 	4(!3!333!!!r   N)__name__
__module____qualname____doc__
media_typer9   r   r   r   r4   r4   E   s4          J" " " " "r   r4   N)
__future__r   coreapi.codecs.baser   coreapi.documentr   r   r   r   r	   r
   r   r4   r   r   r   <module>rB      s    ( ' ' ' ' ' ) ) ) ) ) ) H H H H H H H H H H H H H H H H9 9 9x" " " " ") " " " " "r   