o
    È·e  ã                	   @   s‚  d dl Z zd dlZW n ey   d dlZY nw zd dlmZ W n ey/   d dlmZ Y nw ze j d¡ e jjZW n e	efyK   dd„ ZY nw d dl
mZ d dlmZmZ d d	lmZmZmZmZmZmZ d d
lmZ d dlmZmZmZmZmZ d dlmZ d dlm Z  ej!r¡e"Z#e$Z%d dl&m'Z'm(Z(m)Z) eZ*eZ+dS e#Z#e,Z%d dl'm-Z' d dl'm(Z(m)Z) ddd„Z*		ddd„Z+dS )é    N)Úencodebytes)Úencodestringú~c                 C   s   | S ©N© )Úxr   r   úB/var/www/ideatree/venv/lib/python3.10/site-packages/boto/compat.pyÚ<lambda>/   s    r	   )Úsix)ÚBytesIOÚStringIO)ÚfilterÚhttp_clientÚmapÚ_threadÚurllibÚzip)ÚQueue)Úparse_qsÚquoteÚunquoteÚurlparseÚurlsplit)Úunquote_plus)Úurlopen)ÚConfigParserÚNoOptionErrorÚNoSectionError)ÚSafeConfigParser)r   r   úutf-8c                 C   s   |   |¡}t|ƒ |¡S r   )Úencoder   Údecode)ÚvalueÚencodingÚbyte_stringr   r   r   Úunquote_strI   s   
r%   FÚreplacec                    sp   t | tjƒ}|r|  d¡} t| ||ƒ}|r6i }| ¡ D ]\}}	| ˆ ˆ¡}
‡ ‡fdd„|	D ƒ}|||
< q|S |S )z>Parse a query handling unicode arguments properly in Python 2.Úasciic                    s   g | ]}|  ˆ ˆ¡‘qS r   )r!   )Ú.0Úitem©r#   Úerrorsr   r   Ú
<listcomp>b   s    ÿz!parse_qs_safe.<locals>.<listcomp>)Ú
isinstancer
   Ú	text_typer    r   Úitemsr!   )ÚqsÚkeep_blank_valuesÚstrict_parsingr#   r+   Úis_text_typeÚqs_dictÚresultÚnamer"   Údecoded_nameÚdecoded_valuer   r*   r   Úparse_qs_safeU   s   
ÿ
r9   )r   )FFr   r&   ).ÚosÚ
simplejsonÚjsonÚImportErrorÚbase64r   r   ÚpathÚ
expanduserÚAttributeErrorÚboto.vendoredr
   Úboto.vendored.sixr   r   Úboto.vendored.six.movesr   r   r   r   r   r   Úboto.vendored.six.moves.queuer   Ú$boto.vendored.six.moves.urllib.parser   r   r   r   r   r   Ú&boto.vendored.six.moves.urllib.requestr   ÚPY3Ú	ExceptionÚStandardErrorÚintÚ	long_typeÚconfigparserr   r   r   r%   r9   Úlongr   r   r   r   r   Ú<module>   sL   ÿÿþ 
ÿ