Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/request.cpython-311.pyc

�

�܋fx���dZddlmZmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZddlmZmZmZddlZddlZddlZddlZddlmZddlmZdd	lmZmZmZdd
l m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1ddl2m3Z3m4Z4ddl5Z5ddl6Z6ddl7Z7ddl8Z8ddl9Z9ddl:Z:ddl;Z;ddl<Z<ddl=Z=ddl>Z>ddlmZerdd
l?m@Z@ndd
lAm@Z@	ddlBZBddlBmCZCdZDn
#eE$rdZDYnwxYwgd�ZFe:jGdd�ZHdaIde9jJfd�ZKd�ZLgZMdid�ZNd�ZOere8jPde8jQ��ZRne8jPd��ZRd�ZSGd�deT��ZUGd�deT��ZVd�ZWGd�deT��ZXGd �d!eX��ZYGd"�d#eX��ZZGd$�d%eX��Z[d&�Z\Gd'�d(eX��Z]Gd)�d*eT��Z^Gd+�d,e^��Z_Gd-�d.eT��Z`Gd/�d0e`eX��ZaGd1�d2e`eX��Zbe6jcZdGd3�d4eT��ZeGd5�d6eXee��ZfGd7�d8eXee��ZgGd9�d:eX��ZhGd;�d<eh��Ziejed=��r#Gd>�d?eh��ZkeF�ld?��Gd@�dAeX��ZmGdB�dCeX��ZndD�ZodE�ZpGdF�dGeX��ZqdH�ZrGdI�dJeX��ZsGdK�dLes��ZtdMZue6jvdNkr	ddOlwmxZxmyZyndP�ZxdQ�ZyiZzGdR�dSeT��Z{GdT�dUe{��Z|da}dV�Z~dadW�Z�da�dX�Z�da�dY�Z�GdZ�d[eT��Z�d\�Z�d]�Z�d^�Z�e:j�d_krdd`l�m�Z�m�Z�da�Z�db�Z�dc�Z�dd�Z�dSe6jvdNkrde�Z�df�Z�dg�Z�dh�Z�dSe�Z�e�Z�dS)ja�

Ported using Python-Future from the Python 3.3 standard library.

An extensible library for opening URLs using a variety of protocols

The simplest way to use this module is to call the urlopen function,
which accepts a string containing a URL or a Request object (described
below).  It opens the URL and returns the results as file-like
object; the returned object has some extra methods described below.

The OpenerDirector manages a collection of Handler objects that do
all the actual work.  Each Handler implements a particular protocol or
option.  The OpenerDirector is a composite object that invokes the
Handlers needed to open the requested URL.  For example, the
HTTPHandler performs HTTP GET and POST requests and deals with
non-error returns.  The HTTPRedirectHandler automatically deals with
HTTP 301, 302, 303 and 307 redirect errors, and the HTTPDigestAuthHandler
deals with digest authentication.

urlopen(url, data=None) -- Basic usage is the same as original
urllib.  pass the url and optionally data to post to an HTTP URL, and
get a file-like object back.  One difference is that you can also pass
a Request instance instead of URL.  Raises a URLError (subclass of
IOError); for HTTP errors, raises an HTTPError, which can also be
treated as a valid response.

build_opener -- Function that creates a new OpenerDirector instance.
Will install the default handlers.  Accepts one or more Handlers as
arguments, either instances or Handler classes that it will
instantiate.  If one of the argument is a subclass of the default
handler, the argument will be installed instead of the default.

install_opener -- Installs a new opener as the default opener.

objects of interest:

OpenerDirector -- Sets up the User Agent as the Python-urllib client and manages
the Handler classes, while dealing with requests and responses.

Request -- An object that encapsulates the state of a request.  The
state can be as simple as the URL.  It can also include extra HTTP
headers, e.g. a User-Agent.

BaseHandler --

internals:
BaseHandler and parent
_call_chain conventions

Example usage:

import urllib.request

# set up authentication info
authinfo = urllib.request.HTTPBasicAuthHandler()
authinfo.add_password(realm='PDQ Application',
                      uri='https://mahler:8092/site-updates.py',
                      user='klem',
                      passwd='geheim$parole')

proxy_support = urllib.request.ProxyHandler({"http" : "http://ahad-haam:3128"})

# build a new opener that adds authentication and caching FTP handlers
opener = urllib.request.build_opener(proxy_support, authinfo,
                                     urllib.request.CacheFTPHandler)

# install it
urllib.request.install_opener(opener)

f = urllib.request.urlopen('http://www.python.org/')
�)�absolute_import�division�print_function�unicode_literals)�bytes�dict�filter�input�int�map�open�str)�PY2�PY3�raise_with_tracebackN)�email)�client�)�URLError�	HTTPError�ContentTooShortError)�urlparse�urlsplit�urljoin�unwrap�quote�unquote�	splittype�	splithost�	splitport�	splituser�splitpasswd�	splitattr�
splitquery�
splitvalue�splittag�to_bytes�
urlunparse)�
addinfourl�addclosehook)r)�Iterable)�
SSLContextTF)�Request�OpenerDirector�BaseHandler�HTTPDefaultErrorHandler�HTTPRedirectHandler�HTTPCookieProcessor�ProxyHandler�HTTPPasswordMgr�HTTPPasswordMgrWithDefaultRealm�AbstractBasicAuthHandler�HTTPBasicAuthHandler�ProxyBasicAuthHandler�AbstractDigestAuthHandler�HTTPDigestAuthHandler�ProxyDigestAuthHandler�HTTPHandler�FileHandler�
FTPHandler�CacheFTPHandler�UnknownHandler�HTTPErrorProcessor�urlopen�install_opener�build_opener�pathname2url�url2pathname�
getproxies�urlretrieve�
urlcleanup�	URLopener�FancyURLopener�c�D�d|vr|d}|d=nd}d|vr|d}|d=nd}d|vr|d}|d=nd}|s|s|r�tstd���tjtj��}|xjtjzc_tj|_|s|r|�	||��n|�
��t|d���}t|��}	nt�t��xa
}	nt}	|	�|||��S)N�	cadefaultF�capath�cafilezSSL support not availableT��context�check_hostname)�	_have_ssl�
ValueError�sslr,�PROTOCOL_SSLv23�options�OP_NO_SSLv2�
CERT_REQUIRED�verify_mode�load_verify_locations�set_default_verify_paths�HTTPSHandlerrD�_openerr
)
�url�data�timeout�_3to2kwargsrNrOrPrR�
https_handler�openers
          �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/backports/urllib/request.pyrBrB�sU���k�!�!�{�;�/G�9�[�Yd�Me�Me��)��;����X�)>��K�PX�DY�DY��&��;����X�)>��K�PX�DY�DY��&�
����9���	:��8�9�9�9��.��!4�5�5�����3�?�*���!�/����	/�V�	/��)�)�&�&�9�9�9�9��,�,�.�.�.�$�W�T�J�J�J�
��m�,�,���	��'�>�>�)��&�&����;�;�s�D�'�*�*�*�c�
�|adS�N)r_)res rfrCrC�s���G�G�Grgc�L�t|��\}}tjt||����5}|���}|dkr/|s-t
j�|��|fcddd��S|rt|d��}n6tj
d���}|j}t�
|��|5||f}	d}
d}d}d}
d	|vrt|d
��}|r
||
|
|��	|�|
��}|sn<|t!|��z
}|�|��|
dz
}
|r
||
|
|���T	ddd��n#1swxYwYddd��n#1swxYwY|dkr||krt%d
||fz|	���|	S)aW
    Retrieve a URL into a temporary location on disk.

    Requires a URL argument. If a filename is passed, it is used as
    the temporary file location. The reporthook argument should be
    a callable that accepts a block number, a read size, and the
    total file size of the URL target. The data argument should be
    valid URL encoded data.

    If a filename is passed and the URL points to a local resource,
    the result is a copy from local file to new file.

    Returns a tuple containing the path to the newly created
    data file as well as the resulting HTTPMessage object.
    �fileN�wbF)�delete� ���r�content-length�Content-LengthTr�1retrieval incomplete: got only %i out of %i bytes)r�
contextlib�closingrB�info�os�path�normpathr
�tempfile�NamedTemporaryFile�name�_url_tempfiles�appendr�read�len�writer)r`�filename�
reporthookra�url_typerw�fp�headers�tfp�result�bs�sizer~�blocknum�blocks               rfrHrH�s��� �s�^�^�N�H�d�	�	�G�C��.�.�	/�	/�$3�2��'�'�)�)���v���h���7�#�#�D�)�)�7�2�
$3�$3�$3�$3�$3�$3�$3�$3��	,��x��&�&�C�C��-�U�;�;�;�C��x�H��!�!�(�+�+�+�
�	3�	3��w�&�F��B��D��D��H��7�*�*��7�#3�4�5�5���
/��
�8�R��.�.�.�
3�������������E�
�
�"���	�	�%� � � ��A�
���3��J�x��T�2�2�2�
3��	3�	3�	3�	3�	3�	3�	3�	3�	3�	3�	3����	3�	3�	3�	3�!$3�$3�$3�$3�$3�$3�$3�$3�$3�$3�$3����$3�$3�$3�$3�L�q�y�y�T�D�[�[�"�?��T�l�
�"�$�$�	$��Ms=�=E8�?AE8�
B
E!�E8�!E%	�%E8�(E%	�)E8�8E<�?E<c��tD]'}	tj|���#t$rY�$wxYwtdd�=trdadSdSri)r|rv�unlink�EnvironmentErrorr_)�	temp_files rfrIrI�sr��#���	�	��I�i� � � � ���	�	�	��D�	����	�q�q�q���������s� �
-�-z:\d+$c���|j}t|��d}|dkr|�dd��}t�d|d��}|���S)z�Return request-host, as defined by RFC 2965.

    Variation from RFC: returned value is lowercased, for convenient
    comparison.

    r��Host)�full_urlr�
get_header�_cut_port_re�sub�lower)�requestr`�hosts   rf�request_hostr�sa���
�C��C�=�=���D��r�z�z��!�!�&�"�-�-�����B��a�(�(�D��:�:�<�<�rgc��eZdZdidddfd�Zd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�Zd�Zd�Zd�Zd�Zd�Zdd�Zd�ZdS)r-NFc�|�t|��|_t|j��\|_|_||_i|_d|_|���D]\}}|�||���i|_	|�t|��}||_||_||_
|���dSri)rr�r&�fragmentrar��_tunnel_host�items�
add_header�unredirected_hdrsr��origin_req_host�unverifiable�method�_parse)	�selfr`rar�r�r�r��key�values	         rf�__init__zRequest.__init__s����s����
�'/��
�'>�'>�$��
�t�}���	���� ���!�-�-�/�/�	(�	(�J�C���O�O�C��'�'�'�'�!#����"�*�4�0�0�O�.���(���������
�
�
�
�
rgc��t|j��\|_}|j�td|jz���t	|��\|_|_|jrt|j��|_dSdS)Nzunknown url type: %r)rr��typerUrr��selectorr)r��rests  rfr�zRequest._parse.sr��#�D�M�2�2���	�4��9���3�d�m�C�D�D�D�#,�T�?�?� ��	�4�=��9�	+���	�*�*�D�I�I�I�	+�	+rgc�4�|j�|jS|j�dSdS)z3Return a string indicating the HTTP request method.N�POST�GET)r�ra�r�s rf�
get_methodzRequest.get_method6s$���;�"��;��
�Y�
"��6��5rgc�@�|jr|j�d|j��S|jS)N�#)r�r�r�s rf�get_full_urlzRequest.get_full_url?s)���=�	!�"�m�m�m�T�]�]�;�;��=� rgc�P�d}tj|td���||_dS)Nz&Request.add_data method is deprecated.r��
stacklevel��warnings�warn�DeprecationWarningra)r�ra�msgs   rf�add_datazRequest.add_dataGs*��6���
�c�-�!�<�<�<�<���	�	�	rgc�P�d}tj|td���|jduS)Nz&Request.has_data method is deprecated.rr�r��r�r�s  rf�has_datazRequest.has_dataLs,��6���
�c�-�!�<�<�<�<��y��$�$rgc�L�d}tj|td���|jS)Nz&Request.get_data method is deprecated.rr�r�r�s  rf�get_datazRequest.get_dataQ�'��6���
�c�-�!�<�<�<�<��y�rgc�L�d}tj|td���|jS)Nz&Request.get_type method is deprecated.rr�)r�r�r�r�r�s  rf�get_typezRequest.get_typeVr�rgc�L�d}tj|td���|jS)Nz&Request.get_host method is deprecated.rr�)r�r�r�r�r�s  rf�get_hostzRequest.get_host[r�rgc�L�d}tj|td���|jS)Nz*Request.get_selector method is deprecated.rr�)r�r�r�r�r�s  rf�get_selectorzRequest.get_selector`s'��:���
�c�-�!�<�<�<�<��}�rgc�L�d}tj|td���|jS)Nz-Request.is_unverifiable method is deprecated.rr�)r�r�r�r�r�s  rf�is_unverifiablezRequest.is_unverifiablees(��=���
�c�-�!�<�<�<�<�� � rgc�L�d}tj|td���|jS)Nz1Request.get_origin_req_host method is deprecated.rr�)r�r�r�r�r�s  rf�get_origin_req_hostzRequest.get_origin_req_hostjs(��A���
�c�-�!�<�<�<�<��#�#rgc�x�|jdkr|js
|j|_n||_|j|_||_dS)N�https)r�r�r�r�r�)r�r�r�s   rf�	set_proxyzRequest.set_proxyqs?���9�����(9�� $�	�D����D�I� �M�D�M���	�	�	rgc�"�|j|jkSri)r�r�r�s rf�	has_proxyzRequest.has_proxyys���}��
�-�-rgc�>�||j|���<dSri)r��
capitalize�r�r��vals   rfr�zRequest.add_header|s��),���S�^�^�%�%�&�&�&rgc�>�||j|���<dSri)r�r�r�s   rf�add_unredirected_headerzRequest.add_unredirected_header�s��36���s�~�~�/�/�0�0�0rgc�&�||jvp||jvSri)r�r�)r��header_names  rf�
has_headerzRequest.has_header�s!���t�|�+�6��t�5�5�	7rgc�j�|j�||j�||����Sri)r��getr�)r�r��defaults   rfr�zRequest.get_header�s5���|�����"�&�&�{�G�<�<�>�>�	>rgc��|j���}|�|j��t	|�����Sri)r��copy�updater��listr�)r��hdrss  rf�header_itemszRequest.header_items�s@���%�*�*�,�,�����D�L�!�!�!��D�J�J�L�L�!�!�!rgri)�__name__�
__module__�__qualname__r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��rgrfr-r-sH������!%�r�!%�E������&+�+�+����!�!�!����
%�%�%�
���
���
���
���
!�!�!�
$�$�$����.�.�.�-�-�-�7�7�7�7�7�7�>�>�>�>�
"�"�"�"�"rgr-c�J�eZdZd�Zd�Zd�Zd�Zdejfd�Z	d	d�Z
d�ZdS)
r.c�t�dtz}d|fg|_g|_i|_i|_i|_i|_dS)N�Python-urllib/%sz
User-agent)�__version__�
addheaders�handlers�handle_open�handle_error�process_response�process_request)r��client_versions  rfr�zOpenerDirector.__init__�sH��+�k�9��(�.�9�:�����
������� "���!����rgc�L�t|d��stdt|��z���d}t|��D�].}|dvr�|�d��}|d|�}||dzd�}|�d��ro|�d��|zdz}||dzd�}	t
|��}n#t$rYnwxYw|j�	|i��}	|	|j|<n1|dkr
|}|j
}	n!|d	kr
|}|j}	n|d
kr
|}|j}	n��|	�
|g��}
|
rtj|
|��n|
�|��d}��0|r1tj|j|��|�|��dSdS)N�
add_parentz%expected BaseHandler instance, got %rF)�redirect_request�do_open�
proxy_open�_r�errorr
�responser�T)�hasattr�	TypeErrorr��dir�find�
startswithrrUr�r�r�r�r��
setdefault�bisect�insortr}r�r�)r��handler�added�meth�i�protocol�	condition�j�kind�lookupr�s           rf�add_handlerzOpenerDirector.add_handler�s���w��-�-�	+��C� ��M�M�*�+�+�
+�����L�L�#	�#	�D��D�D�D���	�	�#���A��B�Q�B�x�H��Q�q�S�T�T�
�I��#�#�G�,�,�
��N�N�3�'�'�!�+�a�/���A�a�C�D�D�z����t�9�9�D�D��!�����D������*�.�.�x��<�<��.4��!�(�+�+��f�$�$����)����j�(�(����.����i�'�'����-�����(�(��r�2�2�H��
)��
�h��0�0�0�0�����(�(�(��E�E��	%��M�$�-��1�1�1����t�$�$�$�$�$�	%�	%s�3C�
C�Cc��dSrir�r�s rf�closezOpenerDirector.close�����rgc�r�|�|d��}|D]}t||��}||�}|�|cS�dS)Nr�)r��getattr)	r��chainr�	meth_name�argsr�r�funcr�s	         rf�_call_chainzOpenerDirector._call_chain�s^���9�9�T�2�&�&���	�	�G��7�I�.�.�D��T�4�[�F��!��
�
�
�"�	�	rgNc��t|t��r|���}t|t��rt	||��}n|}|�||_||_|j}|dz}|j�	|g��D]}t||��}||��}�|�||��}	|dz}|j�	|g��D]}t||��}|||	��}	�|	S)z�
        Accept a URL or a Request object

        Python-Future: if the URL is passed as a byte-string, decode it first.
        N�_request�	_response)
�
isinstancer�decoderr-rarbr�r�r�r�_openr�)
r��fullurlrarb�reqr	r�	processorrr�s
          rfr
zOpenerDirector.open�s���g�u�%�%�	'��n�n�&�&�G��g�s�#�#�	 ��'�4�(�(�C�C��C����������8���Z�'�	��-�1�1�(�B�?�?�	�	�I��9�i�0�0�D��$�s�)�)�C�C��:�:�c�4�(�(���[�(�	��.�2�2�8�R�@�@�	+�	+�I��9�i�0�0�D��t�C��*�*�H�H��rgc���|�|jdd|��}|r|S|j}|�|j||dz|��}|r|S|�|jdd|��S)Nr��default_openr�unknown�unknown_open)rr�r�)r�r rar�r	s     rfrzOpenerDirector._open�s����!�!�$�"2�I�"0�#�7�7���	��M��8���!�!�$�"2�H�h�")�?*�+.�0�0���	��M����� 0�)� .��5�5�	5rgc��|dvr|jd}|d}d|z}d}|}n|j}|dz}d}|||f|z}|j|�}|r|S|r|dd	f|z}|j|�SdS)
N��httpr�r(�z
http_error_%sr�_errorrr��http_error_default)r�r)r��protorrr�http_err�	orig_argsr�s        rfr�zOpenerDirector.error
s����%�%�%��$�V�,�D���G�E�'�%�/�I��H��I�I��$�D���(�I��H��e�Y�'�$�.��!��!�4�(���	��M��	+��)�%9�:�Y�F�D�#�4�#�T�*�*�	+�	+rgri)r�r�r�r�rrr�socket�_GLOBAL_DEFAULT_TIMEOUTr
rr�r�rgrfr.r.�s�������	"�	"�	"�-%�-%�-%�^
�
�
�	�	�	�"&�v�/M� � � � �D
5�
5�
5�
5�+�+�+�+�+rgr.c��d�}t��}ttttt
tttg}ttd��r|�t��t��}|D]]}|D]X}||��r&t||��r|�|���3t!||��r|�|���Y�^|D]}|�|���|D]}|�|����� |D],}||��r
|��}|�|���-|S)a*Create an opener object from a list of handlers.

    The opener will use several default handlers, including support
    for HTTP, FTP and when applicable HTTPS.

    If any of the handlers passed as arguments are subclasses of the
    default handlers, the default handlers will not be used.
    c�L�t|t��pt|d��S)N�	__bases__)rr�r�)�objs rf�isclasszbuild_opener.<locals>.isclass/s!���#�t�$�$�A���[�(A�(A�Arg�HTTPSConnection)r.r3r@r<r0r1r>r=rAr��http_clientr}r^�set�
issubclass�addr�remover)r�r5re�default_classes�skip�klass�check�hs        rfrDrD&s���B�B�B��
�
�F�#�^�[�.�0C�!�;�0B�D�O��{�-�.�.�-����|�,�,�,��5�5�D� � � ���	 �	 �E��w�u�~�~�
 ��e�U�+�+�$��H�H�U�O�O�O���E�5�)�)�
 ���������	 ��&�&�����u�%�%�%�%� �$�$�����5�5�7�7�#�#�#�#�
�����7�1�:�:�	�����A����1������Mrgc�$�eZdZdZd�Zd�Zd�ZdS)r/��c��||_dSri)�parent)r�rDs  rfr�zBaseHandler.add_parentOs
������rgc��dSrir�r�s rfrzBaseHandler.closeRrrgc�F�t|d��sdS|j|jkS)N�
handler_orderT)r�rG)r��others  rf�__lt__zBaseHandler.__lt__Vs,���u�o�.�.�	��4��!�E�$7�7�7rgN)r�r�r�rGr�rrIr�rgrfr/r/LsF�������M����
�
�
�8�8�8�8�8rgr/c� �eZdZdZdZd�ZeZdS)rAzProcess HTTP error responses.i�c��|j|j|���}}}d|cxkrdks!n|j�d|||||��}|S)N���,r()�coder�rurDr�)r�r�r�rNr�r�s      rf�
http_responsez HTTPErrorProcessor.http_responsecsg��"�-���x�}�}���4�c���t�!�!�!�!�c�!�!�!�!��{�(�(����4��d�<�<�H��rgN)r�r�r��__doc__rGrO�https_responser�rgrfrArA_s/������'�'��M�	�	�	�#�N�N�NrgrAc��eZdZd�ZdS)r0c�2�t|j||||���ri)rr�)r�r r�rNr�r�s      rfr+z*HTTPDefaultErrorHandler.http_error_defaultqs�����d�C��r�:�:�:rgN)r�r�r�r+r�rgrfr0r0ps#������;�;�;�;�;rgr0c�2�eZdZdZdZd�Zd�ZexZxZZ	dZ
dS)r1��
c�D�	�|���}|dvr|dvs"|dvr|dkst|j||||���|�dd��}d�	t	�	fd�|j���D����}t|||jd	�
��S)a�Return a Request or None in response to a redirect.

        This is called by the http_error_30x methods when a
        redirection response is received.  If a redirection should
        take place, return a new Request to allow http_error_30x to
        perform the redirect.  Otherwise, raise HTTPError if no-one
        else should try to handle this url.  Return None if you can't
        but another Handler might.
        )�-�.�/i3)r��HEAD)rXrYrZr�� z%20)rpzcontent-typec3�R�K�|]!\}}|����v�||fV��"dSri)r�)�.0�k�v�CONTENT_HEADERSs   �rf�	<genexpr>z7HTTPRedirectHandler.redirect_request.<locals>.<genexpr>�sI�����?�?�T�Q���W�W�Y�Y�o�=�=��a�&�=�=�=�=�?�?rgT)r�r�r�)	r�rr��replacerr�r�r-r�)
r�r r�rNr�r��newurl�m�
newheadersras
         @rfr�z$HTTPRedirectHandler.redirect_request|s����
�N�N�����-�-�-�!��2F�2F���&�&�1��;�;��C�L�$��W�b�A�A�A�����U�+�+��<���?�?�?�?�S�[�->�->�-@�-@�?�?�?�?�?�
��v�)�'*�':�$(�*�*�*�	*rgc�,�d|vr	|d}nd|vr	|d}ndSt|��}|jdvrt|||�d|�d�||���|jst	|��}d|d<t|��}t
|j|��}|�||||||��}|�dSt|d��rf|j
x}	|_
|	�|d	��|jkst|	��|jkr t|j||j|z||���nix}	x|_
|_
|	�|d	��d
z|	|<|���|���|j�||j���S)N�location�uri�r(r��ftpr�z - Redirection to url 'z' is not allowed�/r)�
redirect_dictrr�rb)r�schemerrwr�r(rr�r�r�rmr��max_repeatsr�max_redirections�inf_msgr~rrDr
rb)
r�r r�rNr�r�rd�urlparts�new�visiteds
          rf�http_error_302z"HTTPRedirectHandler.http_error_302�s����� � ��Z�(�F�F�
�g�
�
��U�^�F�F��F��F�#�#��
�?�">�>�>����AD���f�f�f�M�����
�
�}�	��H�~�~�H��H�Q�K��H�%�%�����v�.�.��
�#�#�C��T�3���H�H���;��F��3��(�(�	A�*-�*;�;�G�c�'����F�A�&�&�$�*:�:�:��G���� 5�5�5����d� $��s� 2�G�R�A�A�A�6�?A�@�G�@�c�'�#�*;�!�+�+�f�a�0�0�1�4����	���	�	�	�
���
�
�
��{����S�[��9�9�9rgzoThe HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
N)r�r�r�rprqr�rv�http_error_301�http_error_303�http_error_307rrr�rgrfr1r1tsV�������K���*�*�*�D5:�5:�5:�n8F�E�N�E�^�n�2�G�G�Grgr1c�Z�t|��\}}|�d��sd}|}nO|�d��std|z���|�dd��}|dkrd}|d|�}t	|��\}}|�t|��\}}ndx}}||||fS)a3Return (scheme, user, password, host/port) given a URL or an authority.

    If a URL is supplied, it must have an authority (host:port) component.
    According to RFC 3986, having an authority component means the URL must
    have two slashes after the scheme:

    >>> _parse_proxy('file:/ftp.example.com/')
    Traceback (most recent call last):
    ValueError: proxy URL with no authority: 'file:/ftp.example.com/'

    The first three items of the returned tuple may be None.

    Examples of authority parsing:

    >>> _parse_proxy('proxy.example.com')
    (None, None, None, 'proxy.example.com')
    >>> _parse_proxy('proxy.example.com:3128')
    (None, None, None, 'proxy.example.com:3128')

    The authority component may optionally include userinfo (assumed to be
    username:password):

    >>> _parse_proxy('joe:password@proxy.example.com')
    (None, 'joe', 'password', 'proxy.example.com')
    >>> _parse_proxy('joe:password@proxy.example.com:3128')
    (None, 'joe', 'password', 'proxy.example.com:3128')

    Same examples, but with URLs instead:

    >>> _parse_proxy('http://proxy.example.com/')
    ('http', None, None, 'proxy.example.com')
    >>> _parse_proxy('http://proxy.example.com:3128/')
    ('http', None, None, 'proxy.example.com:3128')
    >>> _parse_proxy('http://joe:password@proxy.example.com/')
    ('http', 'joe', 'password', 'proxy.example.com')
    >>> _parse_proxy('http://joe:password@proxy.example.com:3128')
    ('http', 'joe', 'password', 'proxy.example.com:3128')

    Everything after the authority is ignored:

    >>> _parse_proxy('ftp://joe:password@proxy.example.com/rubbish:3128')
    ('ftp', 'joe', 'password', 'proxy.example.com')

    Test for no trailing '/' case:

    >>> _parse_proxy('http://joe:password@proxy.example.com')
    ('http', 'joe', 'password', 'proxy.example.com')

    rlN�//zproxy URL with no authority: %rr)ro)rrrUrr!r")	�proxyro�r_scheme�	authority�end�userinfo�hostport�user�passwords	         rf�_parse_proxyr��s���d!��'�'��F�H����s�#�#�
$����	�	��"�"�4�(�(�	H��>��F�G�G�G��m�m�C��#�#���"�9�9��C��Q�s�U�O�	�"�9�-�-��H�h���$�X�.�.���h�h����x��4��8�+�+rgc� �eZdZdZdd�Zd�ZdS)r3�dNc���|�t��}t|d��s
Jd���||_|���D]#\}}t	|d|z|||jfd����$dS)N�keys�proxies must be a mappingz%s_openc��||||��Srir�)�rr|r�rs    rf�<lambda>z'ProxyHandler.__init__.<locals>.<lambda>/s����Q��t�,�,�rg)rGr��proxiesr��setattrr�)r�r�r�r`s    rfr�zProxyHandler.__init__(s����?� �l�l�G��w��'�'�D�D�)D�D�D�'���� �����	.�	.�I�D�#��D�)�d�*�$'�d���-�-�-�
.�
.�
.�
.�	.�	.rgc��|j}t|��\}}}}|�|}|jrt|j��rdS|ru|rst	|���dt	|����}	tj|	������d��}
|�	dd|
z��t	|��}|�
||��||ks|dkrdS|j�||j
���S)N�:�ascii�Proxy-authorization�Basic r�rn)r�r�r��proxy_bypassr�base64�	b64encode�encoderr�r�rDr
rb)r�r r|r��	orig_type�
proxy_typer�r�r��	user_pass�credss           rfr�zProxyHandler.proxy_open2s���H�	�/;�E�/B�/B�,�
�D�(�H���"�J��8�	��S�X�.�.�	��4��	D�H�	D�#*�4�=�=�=�=�#*�8�#4�#4�#4�6�I��$�Y�%5�%5�%7�%7�8�8�?�?��H�H�E��N�N�0�(�U�2B�C�C�C��8�$�$���
�
�h�
�+�+�+��
�"�"�i�7�&:�&:��4��;�#�#�C���#�=�=�=rgri)r�r�r�rGr�r�r�rgrfr3r3$s<�������M�.�.�.�.�>�>�>�>�>rgr3c�.�eZdZd�Zd�Zd�Zdd�Zd�ZdS)	r4c��i|_dSri)�passwdr�s rfr�zHTTPPasswordMgr.__init__Ps
������rgc�����t|t��r|g}|�jvr
i�j|<dD]0�t��fd�|D����}||f�j||<�1dS)N�TFc�<��g|]}��|�����Sr�)�
reduce_uri)r^�u�default_portr�s  ��rf�
<listcomp>z0HTTPPasswordMgr.add_password.<locals>.<listcomp>[s'���?�?�?�a�����L�1�1�?�?�?rg)rrr��tuple)r��realmrir�r��reduced_urir�s`     @rf�add_passwordzHTTPPasswordMgr.add_passwordSs������c�3���	��%�C����#�#�!#�D�K���'�	=�	=�L��?�?�?�?�?�3�?�?�?�A�A�K�/3�V�n�D�K���{�+�+�	=�	=rgc���|j�|i��}dD]U}|�||��}|���D](\}}|D] }|�||��r|cccS�!�)�VdS)Nr��NN)r�r�r�r��	is_suburi)	r�r��authuri�domainsr��reduced_authuri�uris�authinforis	         rf�find_user_passwordz"HTTPPasswordMgr.find_user_password^s����+�/�/�%��,�,��'�	(�	(�L�"�o�o�g�|�D�D�O�")�-�-�/�/�
(�
(���h��(�(�C��~�~�c�?�;�;�(�'��������(�(�
(��zrgTc���t|��}|dr|d}|d}|dpd}nd}|}d}t|��\}}|r%|�#|�!ddd��|��}	|	�d	||	fz}||fS)
z@Accept authority or URI and extract only the authority and path.rrr)rlN�Pi�r'z%s:%d)rr r�)
r�rir��partsror~rwr��port�dports
          rfr�zHTTPPasswordMgr.reduce_urihs�����
�
����8�		��1�X�F��a��I���8�?�s�D�D��F��I��D��y�)�)�
��d��	4�D�L�V�-?��!����s�6�{�{�
�� �#�t�U�m�3�	��$��rgc���||krdS|d|dkrdStj|d|df��}t|��t|d��krdSdS)zcCheck if test is below base in a URI tree

        Both args must be URIs in reduced form.
        TrFr)�	posixpath�commonprefixr)r��base�test�commons    rfr�zHTTPPasswordMgr.is_suburisl��
�4�<�<��4���7�d�1�g����5��'��a��$�q�'�(:�;�;���v�;�;�#�d�1�g�,�,�&�&��4��urgN)T)r�r�r�r�r�r�r�r�r�rgrfr4r4Nsd���������	=�	=�	=��������.����rgr4c��eZdZd�ZdS)r5c��t�|||��\}}|�||fSt�|d|��Sri)r4r�)r�r�r�r�r�s     rfr�z2HTTPPasswordMgrWithDefaultRealm.find_user_password�sL��(�;�;�D�%�<C�E�E���h�����>�!��1�1�$��g�F�F�FrgN)r�r�r�r�r�rgrfr5r5�s(������G�G�G�G�Grgr5c�T�eZdZejdej��Zdd�Zd�Zd�Z	d�Z
dS)r6z1(?:.*,)*[ 	]*([^ 	]+)[ 	]+realm=(["']?)([^"']*)\2Nc�d�|�t��}||_|jj|_d|_dS�Nr)r4r�r��retried)r��password_mgrs  rfr�z!AbstractBasicAuthHandler.__init__�s2����*�,�,�L�"��� �K�4�������rgc��d|_dSr��r�r�s rf�reset_retry_countz*AbstractBasicAuthHandler.reset_retry_count��
������rgc��|�|d��}|jdkr%t|���dd|d���|xjdz
c_|r�|���d}|���dkrt
d|z���tj�	|��}|r~|�
��\}}}|dvrtjd	td
��|���dkr1|�|||��}	|	r|	jdkrd|_|	SdSdSdS)N��zbasic auth failedrr�basiczDAbstractBasicAuthHandler does not support the following scheme: '%s')�"�'zBasic Auth Realm was unquotedr))r�r�rr��splitr�rUr6�rx�search�groupsr�r��UserWarning�retry_http_basic_authrN)
r��authreqr�r r�ro�morr�r�s
          rf�http_error_auth_reqedz.AbstractBasicAuthHandler.http_error_auth_reqed�sn���+�+�g�t�,�,���<�!����C�,�,�.�.��5H��T�#�#�
#�
�L�L�A��L�L��	(��]�]�_�_�Q�'�F��|�|�~�~��(�(� �"G�!'�"(�)�)�)�.�0�7�7��@�@���	(�+-�9�9�;�;�(�F�E�5��I�-�-� �
�&E�&1�1�6�6�6��|�|�~�~��0�0�#'�#=�#=�d�C��#O�#O��#�-��
��(<�(<�+,�D�L�'��#	(�	(�	(�	(�
1�0rgc��|j�||��\}}|��|�d|��}dtj|������d��z}|j�|jd��|krdS|�	|j|��|j
�||j���SdS)Nr�r�r�rn)
r�r�r�r�r�rr�r��auth_headerr�rDr
rb)r�r�r r�r��pw�raw�auths        rfr�z.AbstractBasicAuthHandler.retry_http_basic_auth�s����;�1�1�%��>�>���b�
�>�!�T�T�2�2�&�C��f�.�s�z�z�|�|�<�<�C�C�G�L�L�L�D��{���t�/��6�6�$�>�>��t��'�'��(8�$�?�?�?��;�#�#�C���#�=�=�=��4rgri)r�r�r��re�compile�Ir�r�r�r�r�r�rgrfr6r6�su������
���1�24�$�
8�
8�B��������(�(�(�@
�
�
�
�
rgr6c��eZdZdZd�ZdS)r7�
Authorizationc�l�|j}|�d|||��}|���|S)N�www-authenticate)r�r�r�)r�r r�rNr�r�r`r�s        rf�http_error_401z#HTTPBasicAuthHandler.http_error_401�s?���l���-�-�.@�*-�s�G�=�=����� � � ��rgN)r�r�r�r�r�r�rgrfr7r7�s(������!�K�����rgr7c��eZdZdZd�ZdS)r8r�c�l�|j}|�d|||��}|���|S�N�proxy-authenticate�r�r�r�)r�r r�rNr�r�r~r�s        rf�http_error_407z$ProxyBasicAuthHandler.http_error_407�sC��
�H�	��-�-�.B�*3�S�'�C�C����� � � ��rgN)r�r�r�r�r�r�rgrfr8r8�s(������'�K�	�	�	�	�	rgr8c�@�eZdZd
d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
dS)r9Nc��|�t��}||_|jj|_d|_d|_d|_dSr�)r4r�r�r��nonce_count�
last_nonce)r�r�s  rfr�z"AbstractDigestAuthHandler.__init__s@���>�$�&�&�F���� �K�4�������������rgc��d|_dSr�r�r�s rfr�z+AbstractDigestAuthHandler.reset_retry_countr�rgc��|�|d��}|jdkrt|jdd|d���|xjdz
c_|rr|���d}|���dkr|�||��S|���dkrtd|z���dSdS)	Nr�r�zdigest auth failedrr�digestr�zEAbstractDigestAuthHandler does not support the following scheme: '%s')r�r�rr�r�r��retry_http_digest_authrU)r�r�r�r r�r�ros       rfr�z/AbstractDigestAuthHandler.http_error_auth_reqeds����+�+�k�4�0�0���<�!����C�L�#�/C�#�T�+�+�
+�
�L�L�A��L�L��	I��]�]�_�_�Q�'�F��|�|�~�~��)�)��2�2�3��@�@�@������7�*�*� �"?�AG�"H�I�I�I�	I�	I�+�*rgc��|�dd��\}}ttdt|������}|�||��}|rid|z}|j�|jd��|krdS|�|j|��|j	�
||j���}|SdS)Nr\rz	Digest %srn)r��parse_keqv_listr	�parse_http_list�get_authorizationr�r�r�r�rDr
rb)r�r r��token�	challenge�chal�auth_val�resps        rfr�z0AbstractDigestAuthHandler.retry_http_digest_auth(s����:�:�c�1�-�-���y��v�d�O�I�,F�,F�G�G�H�H���%�%�c�4�0�0���	�"�T�)�H��{���t�/��6�6�(�B�B��t��'�'��(8�(�C�C�C��;�#�#�C���#�=�=�D��K�
	�	rgc���|j�d|�dtj���d�}|�d��t	d��z}tj|�����}|dd�S)Nr�r���)r��time�ctimer��_randombytes�hashlib�sha1�	hexdigest)r��nonce�s�b�digs     rf�
get_cnoncez$AbstractDigestAuthHandler.get_cnonce4si�� �+�+�+�U�U�U�D�J�L�L�L�L�A��
�H�H�W����Q���/���l�1�o�o�'�'�)�)���3�B�3�x�rgc���	|d}|d}|�d��}|�dd��}|�dd��}n#t$rYdSwxYw|�|��\}}	|�dS|j�||j��\}
}|
�dS|j�|�|j|��}nd}|
�d|�d|��}
|����d|j	��}|dkrx||j
kr|xjd	z
c_nd	|_||_
d
|jz}|�|��}|�d|�d|�d|�d||����	}|	||
��|��}n8|�$|	||
��|�d||������}ntd|z���d|
�d
|�d|�d|j	�d|�d�}|r|d|zz
}|r|d|zz
}|d|zz
}|r|d|�d|�d�z
}|S)Nr�r�qop�	algorithm�MD5�opaquer�r�rz%08xzqop '%s' is not supported.z
username="z
", realm="z
", nonce="z", uri="z
", response="r�z
, opaque="%s"z
, digest="%s"z, algorithm="%s"z, qop=auth, nc=z
, cnonce=")r��KeyError�get_algorithm_implsr�r�r�ra�get_entity_digestr�r�r�r�r	r)r�r r�r�rrrr�H�KDr�r��entdig�A1�A2�ncvalue�cnonce�noncebit�respdigr�s                    rfr�z+AbstractDigestAuthHandler.get_authorization?s���		���M�E���M�E��(�(�5�/�/�C�����e�4�4�I��X�X�h��-�-�F�F���	�	�	��4�4�	�����(�(��3�3���2��9��4��;�1�1�%���F�F���b��<��4��8���+�+�C�H�d�;�;�F�F��F��4�4������
+�����(�(�(�(����&���&�=�=����'�'�� � �A�%� � � �#$�� �"'����t�/�/�G��_�_�U�+�+�F�+0�5�5�'�'�'�6�6�6�3�3�3���"����N�H��b���2����)�)�G�G�
�[��b���2���5�5�5�!�!�B�%�%�%� 8�9�9�G�G��7�#�=�>�>�>��
#'�$�$����u�u�u�c�l�l�l�")�'�'�+���	-��O�f�,�,�D��	-��O�f�,�,�D��"�Y�.�.���	I��D�������H�H�D��s�AA�
A"�!A"c�<��|dkrd��n	|dkrd���fd�}�|fS)Nr
c�t�tj|�d�������S�Nr�)r�md5r�r��xs rfr�z?AbstractDigestAuthHandler.get_algorithm_impls.<locals>.<lambda>~s(��'�+�a�h�h�w�&7�&7�8�8�B�B�D�D�rg�SHAc�t�tj|�d�������Sr)rrr�rrs rfr�z?AbstractDigestAuthHandler.get_algorithm_impls.<locals>.<lambda>�s(��'�,�q�x�x��'8�'8�9�9�C�C�E�E�rgc�$���|�d|����S)Nr�r�)r�drs  �rfr�z?AbstractDigestAuthHandler.get_algorithm_impls.<locals>.<lambda>�s���!�!�q�q�q�!�!�,�-�-�rgr�)r�rrrs   @rfrz-AbstractDigestAuthHandler.get_algorithm_impls{sB�������D�D�A�A�
�%�
�
�E�E�A�
-�
-�
-�
-���"�u�rgc��dSrir�)r�rar�s   rfrz+AbstractDigestAuthHandler.get_entity_digest�s���trgri)r�r�r�r�r�r�r�r	r�rrr�rgrfr9r9�s��������������I�I�I�(
�
�
�	�	�	�:�:�:�x�������rgr9c� �eZdZdZdZdZd�ZdS)r:z�An authentication protocol defined by RFC 2069

    Digest authentication improves on basic authentication because it
    does not transmit passwords in the clear.
    r���c��t|j��d}|�d|||��}|���|S)Nrr�)rr�r�r��r�r r�rNr�r�r��retrys        rfr�z$HTTPDigestAuthHandler.http_error_401�sL�����%�%�a�(���*�*�+=�+/��g�?�?����� � � ��rgN)r�r�r�rPr�rGr�r�rgrfr:r:�s9��������"�K��M�����rgr:c��eZdZdZdZd�ZdS)r;�Proxy-Authorizationr'c�l�|j}|�d|||��}|���|Sr�r�r)s        rfr�z%ProxyDigestAuthHandler.http_error_407�s?���x���*�*�+?�+/��g�?�?����� � � ��rgN)r�r�r�r�rGr�r�rgrfr;r;�s-������'�K��M�����rgr;c�(�eZdZdd�Zd�Zd�Zd�ZdS)�AbstractHTTPHandlerrc��||_dSri��_debuglevel)r��
debuglevels  rfr�zAbstractHTTPHandler.__init__�s��%����rgc��||_dSrir1)r��levels  rf�set_http_debuglevelz'AbstractHTTPHandler.set_http_debuglevel�s�� ����rgc��|j}|std���|j��0|j}t|t��rd}t|���|�d��s|�dd��|�d��s�d}	tr2t|tj	��rt|��|jz}n&t|��}t|��|jz}|�dd|z��nG#t
$r:t|t��r"tdt|���d|�����YnwxYw|}|���r)t#|j��\}}	t'|	��\}}
|�d	��s|�d	|��|jjD]D\}}|���}|�|��s|�||���E|S)
N�
no host givenzLPOST data should be bytes or an iterable of bytes. It cannot be of type str.zContent-type�!application/x-www-form-urlencodedzContent-lengthz%dz=Content-Length should be specified for iterable data of type r\r�)r�rrarrr�r�r�r�arrayr�itemsize�
memoryviewr+rUr�r�rr�rrDr�r�)
r�r�r�rar�r��mv�sel_hostro�sel�sel_pathr{r�s
             rf�do_request_zAbstractHTTPHandler.do_request_�sL���|���	,��?�+�+�+��<�#��<�D��$��$�$�
%�2����n�n�$��%�%�n�5�5�
9��/�/�"�7�9�9�9��%�%�&6�7�7�
;���;��	5�z�$���<�<�	5�
 #�4�y�y�4�=�8���(��-�-��"�2�w�w���4���3�3�,�d�T�k�;�;�;�;��
!�'�'�'�!�$��1�1�'�(�j�EI�$�Z�Z�Z�Z� $��*&�'�'�'�'�'�'�����������	0�#�G�$4�5�5�K�F�C�!*�3����H�h��!�!�&�)�)�	>��+�+�F�H�=�=�=��;�1�	=�	=�K�D�%��?�?�$�$�D��%�%�d�+�+�
=��/�/��e�<�<�<���s�AD
�
AE�
Ec�|�
�|j}|std���||fd|ji|��}t|j���
�
�t�
fd�|j���D������d�
d<td��
���D�����
|jr2i}d}|�
vr�
|||<�
|=|�	|j|���	|�
|���|j|j
�
��|���}|jr |j���d	|_n:#t"j$r(}	|���t|	���d	}	~	wwxYw|���|_|j|_|S)
z�Return an HTTPResponse object for the request, using http_class.

        http_class must implement the HTTPConnection API from http.client.
        r8rbc3�.�K�|]\}}|�v�	||fV��dSrir�)r^r_r`r�s   �rfrbz.AbstractHTTPHandler.do_open.<locals>.<genexpr>�sA�����1�1�t�q�!� ��/�/���F�/�/�/�/�1�1rgr�
Connectionc3�HK�|]\}}|���|fV��dSri)�title)r^r{r�s   rfrbz.AbstractHTTPHandler.do_open.<locals>.<genexpr>�s3����L�L�y�t�S��
�
���c�*�L�L�L�L�L�Lrgr,�r�N)r�rrbrr�r�r�r�r��
set_tunnelr�r�r�ra�getresponse�sockrr/r�r�r`�reasonr�)r��
http_classr �http_conn_argsr�r@�tunnel_headers�proxy_auth_hdrr��errr�s          @rfr�zAbstractHTTPHandler.do_open�s����
�x���	,��?�+�+�+�
�J�t�C�C�S�[�C�N�C�C���s�,�-�-�����t�1�1�1�1�s�{�/@�/@�/B�/B�1�1�1�1�1�	2�	2�	2�!(�����L�L�G�M�M�O�O�L�L�L�L�L����	C��N�2�N���(�(�18��1H��~�.��N�+�
�L�L��)�>�L�B�B�B�	�
�I�I�c�n�n�&�&���c�h��H�H�H�
�
�
���A��v�
��������������|�	 �	 �	 �
�G�G�I�I�I��3�-�-������	 ����� � �"�"��������s�-4E�F�,#F�FN�r)r�r�r�r�r6rAr�r�rgrfr/r/�sV������&�&�&�&�!�!�!�1�1�1�f<�<�<�<�<rgr/c�"�eZdZd�ZejZdS)r<c�B�|�tj|��Sri)r�r7�HTTPConnection�r�r s  rf�	http_openzHTTPHandler.http_open$s���|�|�K�6��<�<�<rgN)r�r�r�rVr/rA�http_requestr�rgrfr<r<"s'������=�=�=�'�2�L�L�Lrgr<r6c�*�eZdZdd�Zd�ZejZdS)r^rNc�X�t�||��||_||_dSri)r/r��_context�_check_hostname)r�r3rRrSs    rfr�zHTTPSHandler.__init__-s-���(�(��z�:�:�:�#�D�M�#1�D� � � rgc�\�|�tj||j|j���S)NrQ)r�r7r6rZr[rUs  rf�
https_openzHTTPSHandler.https_open2s1���<�<�� ;�S��
�d�6J� �L�L�
Lrg)rNN)r�r�r�r�r]r/rA�
https_requestr�rgrfr^r^+s>������	2�	2�	2�	2�
	L�	L�	L�,�7�
�
�
rgr^c�*�eZdZdd�Zd�Zd�ZeZeZdS)r2Nc�X�ddlmcmcm}|�|���}||_dSr�)�future.backports.http.cookiejar�	backportsr(�	cookiejar�	CookieJar)r�rc�http_cookiejars   rfr�zHTTPCookieProcessor.__init__;sH��@�@�@�@�@�@�@�@�@�@�@�@���&�0�0�2�2�I�"����rgc�:�|j�|��|Sri)rc�add_cookie_header)r�r�s  rfrWz HTTPCookieProcessor.http_requestAs����(�(��1�1�1��rgc�<�|j�||��|Sri)rc�extract_cookies)r�r�r�s   rfrOz!HTTPCookieProcessor.http_responseEs����&�&�x��9�9�9��rgri)r�r�r�r�rWrOr^rQr�rgrfr2r2:sL������#�#�#�#�������!�M�"�N�N�Nrgr2c��eZdZd�ZdS)r@c�4�|j}td|z���)Nzunknown url type: %s)r�r)r�r r�s   rfr%zUnknownHandler.unknown_openMs���x���-��4�5�5�5rgN)r�r�r�r%r�rgrfr@r@Ls#������6�6�6�6�6rgr@c��i}|D]B}|�dd��\}}|ddkr|ddkr
|dd�}|||<�C|S)z>Parse list of key=value strings where keys are not duplicated.�=rrr�ro)r�)�l�parsed�eltr_r`s     rfr�r�Qsc��
�F������y�y��a� � ���1��Q�4�3�;�;�1�R�5�C�<�<��!�B�$��A���q�	�	��Mrgc��g}d}dx}}|D]P}|r||z
}d}�|r|dkrd}�|dkrd}||z
}�%|dkr|�|��d}�C|dkrd}||z
}�Q|r|�|��d�|D��S)apParse lists as described by RFC 2068 Section 2.

    In particular, parse comma-separated lists where the elements of
    the list may include quoted-strings.  A quoted-string could
    contain a comma.  A non-quoted string could have quotes in the
    middle.  Neither commas nor quotes count if they are escaped.
    Only double-quotes count, not single-quotes.
    r�F�\Tr��,c�6�g|]}|�����Sr���strip)r^�parts  rfr�z#parse_http_list.<locals>.<listcomp>�s ��)�)�)�T�D�J�J�L�L�)�)�)rg)r})r�resrw�escaper�curs      rfr�r�[s���
�C�
�D���F�U������	��C�K�D��F���	��d�{�{�����������C�K�D���#�:�:��J�J�t�����D���#�:�:��E���������
�
�4����)�)�S�)�)�)�)rgc�$�eZdZd�ZdZd�Zd�ZdS)r=c���|j}|dd�dkrL|dd�dkr>|jr7|jdkr,|j|���urtd���dS|�|��S)Nr)r{rLrl�	localhost�-file:// scheme is supported only on localhost)r�r��	get_namesr�open_local_file)r�r r`s   rf�	file_openzFileHandler.file_open�s����l���r��r�7�d�?�?�s�1�Q�3�x�3���C�H����K�'�'��8�t�~�~�/�/�/�/��N�O�O�O�0�/��'�'��,�,�,rgNc�X�tj��	ttjd��dtjtj����dz��t_n4#tj$r"tjd��ft_YnwxYwtjS)Nr}r))r=�namesr�r/�gethostbyname_ex�gethostname�gaierror�
gethostbynamer�s rfrzFileHandler.get_names�s�����$�
I�$)��+�K�8�8��;��+�F�,>�,@�,@�A�A�!�D�E�%F�%F��!�!���?�
I�
I�
I�%+�%9�+�%F�%F�$H��!�!�!�
I����� � s�AA,�,.B�Bc�p�ddlmcmcm}ddl}|j}|j}t|��}	tj	|��}|j
}|�|jd���}	|�
|��d}
tjd|
pd||	fz��}|rt|��\}}|r%|sRt!|��|���vr/|r	d|z|z}
nd|z}
t%t'|d��||
��Sn!#t($r}t+|���d}~wwxYwt+d���)	NrT��usegmtz6Content-type: %s
Content-length: %d
Last-modified: %s
�
text/plain�file://�rbzfile not on local host)�future.backports.email.utilsrbr�utils�	mimetypesr�r�rFrv�stat�st_size�
formatdate�st_mtime�
guess_type�message_from_stringr �_safe_gethostbynamerr)r
�OSErrorr)r�r �email_utilsr�r�r��	localfile�statsr��modified�mtyper�r��origurl�exps               rfr�zFileHandler.open_local_file�s���:�:�:�:�:�:�:�:�:�:�:�:������x���<�� ��*�*�	�	 ��G�I�&�&�E��=�D�"�-�-�e�n�T�-�J�J�H��(�(��2�2�1�5�E��/�K��&�,��h�7�8�9�9�G��
-�&�t�_�_�
��d��
K��
K�1�$�7�7�4�>�>�;K�;K�K�K��3�'�$�.��9�G�G�'�(�2�G�!�$�y�$�"7�"7��'�J�J�J����	 �	 �	 ��3�-�-������	 �����/�0�0�0s�CD�
D&�D!�!D&)r�r�r�r�r�rr�r�rgrfr=r=�sH������-�-�-�
�E�!�!�!�1�1�1�1�1rgr=c�X�	tj|��S#tj$rYdSwxYwri)r/r�r��r�s rfr�r��s<����#�D�)�)�)���?�����t�t����s��)�)c��eZdZd�Zd�ZdS)r>c���ddl}ddl}|j}|std���t	|��\}}|�|j}nt
|��}t|��\}}|rt|��\}}nd}t|��}|pd}|pd}	tj|��}n&#tj$r}t|���d}~wwxYwt|j��\}	}
|	�d��}t!t#t|����}|dd�|d}}|r|ds
|dd�}	|�||||||j��}
|rdpd}|
D]D}t)|��\}}|���d	kr|d
vr|���}�E|
�||��\}}d}|�|j��d}|r|d|zz
}|�|dkr|d|zz
}t5j|��}t9|||j��S#|j$r,}td
|z��}t=|��Yd}~dSd}~wwxYw)Nr�ftp error: no host givenr�rlrorr��Dr���a�Arr�r$r�zContent-type: %s
zContent-length: %d
�
ftp error: %r)�ftplibr�r�rr �FTP_PORTrr!r"rr/r�r�r#r�r�r�r�connect_ftprbr%r��upper�retrfiler�r�rr�r)�
all_errorsr)r�r r�r�r�r�r�r�r�rw�attrs�dirsrk�fwr��attrr�r��retrlenr�r�r��excs                       rf�ftp_openzFTPHandler.ftp_open�s����
�
�
������x���	7��5�6�6�6��t�_�_�
��d��<��?�D�D��t�9�9�D��t�_�_�
��d��	�&�t�,�,�L�D�&�&��F��t�}�}���z�r����2��	 ��'��-�-�D�D���|�	 �	 �	 ��3�-�-������	 �������-�-���e��z�z�#�����C���&�&�'�'���#�2�#�Y��R��d���	��Q��	�����8�D�	&��!�!�$���d�D�#�+�N�N�B��<�C�&�3�D��
)�
)��(��.�.���e��:�:�<�<�6�)�)��:�:�:� �;�;�=�=�D���+�+�d�D�1�1�K�B���G��(�(���6�6�q�9�E��
8��/�%�7�7���"�w�!�|�|��1�G�;�;���/��8�8�G��b�'�3�<�8�8�8��� �	&�	&�	&��?�S�0�1�1�C� ��%�%�%�%�%�%�%�%�%�����	&���s1�
B"�"C�1C�C�=C*H(�(
I�2!I�Ic	�.�t||||||d���S)NF)�
persistent)�
ftpwrapper)r�r�r�r�r�r�rbs       rfr�zFTPHandler.connect_ftp�s(���$���d�D�'�%*�,�,�,�	,rgN)r�r�r�r�r�r�rgrfr>r>�s3������3&�3&�3&�j,�,�,�,�,rgr>c�2�eZdZd�Zd�Zd�Zd�Zd�Zd�ZdS)r?c�L�i|_i|_d|_d|_d|_dS)Nr�<r�)�cacherb�soonest�delay�	max_connsr�s rfr�zCacheFTPHandler.__init__�s)����
���������
�����rgc��||_dSri)r�)r��ts  rf�
setTimeoutzCacheFTPHandler.setTimeouts
����
�
�
rgc��||_dSri)r�)r�res  rf�setMaxConnszCacheFTPHandler.setMaxConnss
������rgc�P�|||d�|��|f}||jvr$tj��|jz|j|<n?t||||||��|j|<tj��|jz|j|<|���|j|S)Nrl)�joinr�r�r�rbr��check_cache)r�r�r�r�r�r�rbr�s        rfr�zCacheFTPHandler.connect_ftp
s����D�$��������7���$�*��� $�	���d�j� 8�D�L����(��v�t�T�)-�w�8�8�D�J�s�O� $�	���d�j� 8�D�L����������z�#��rgc��tj��}|j|krat|j�����D]:\}}||kr/|j|���|j|=|j|=�;tt|j�������|_t|j��|j
kr�t|j�����D]"\}}||jkr|j|=|j|=n�#tt|j�������|_dSdSri)r�r�r�rbr�r�r�min�valuesrr�)r�r�r_r`s    rfr�zCacheFTPHandler.check_caches8���I�K�K���<�1����T�\�/�/�1�1�2�2�
(�
(���1��q�5�5��J�q�M�'�'�)�)�)��
�1�
���Q����4��� 3� 3� 5� 5�6�6�7�7����t�z�?�?�d�n�,�,��T�\�/�/�1�1�2�2�
�
���1����$�$��
�1�
���Q���E�%��t�D�L�$7�$7�$9�$9�:�:�;�;�D�L�L�L�
-�,rgc���|j���D]}|����|j���|j���dSri)r�r�r�clearrb)r��conns  rf�clear_cachezCacheFTPHandler.clear_cache)s\���J�%�%�'�'�	�	�D��J�J�L�L�L�L��
��������������rgN)	r�r�r�r�r�r�r�r�r�r�rgrfr?r?�sn���������������	�	�	�<�<�<�(����rgr?rV�nt)rFrEc� �t|��S)zOS-specific conversion from a relative URL of the 'file' scheme
        to a file system path; not recommended for general use.)r��pathnames rfrFrF8s���x� � � rgc� �t|��S)zOS-specific conversion from a file system path to a relative URL
        of the 'file' scheme; not recommended for general use.)rr�s rfrErE=s���X���rgc��eZdZdZdZdezZdd�Zd�Zd�Z	d�Z
d�Zdd	�Zdd
�Z
dd�Zdd�Zd
�Zdd�Zdd�Zd�Zerd�Zdd�Zd�Zd�Zd�Zdd�ZdS)rJa,Class to open URLs.
    This is a class rather than just a subroutine because we may need
    more than one set of global protocol-specific options.
    Note -- this is a base class for those who don't want the
    automatic handling of errors type 302 (relocated) and 401
    (authorization needed).Nr�c��dd|jjiz}tj|td���|�t��}t
|d��s
Jd���||_|�d��|_	|�d��|_
d	|jfg|_g|_
tj|_d|_t$|_dS)
NzW%(class)s style of invoking requests is deprecated. Use newer urlopen functions/methods�classrLr�r�r��key_file�	cert_filez
User-Agent)�	__class__r�r�r�r�rGr�r�r�r�r��versionr��_URLopener__tempfilesrvr��_URLopener__unlink�	tempcache�ftpcache)r�r��x509r�s    rfr�zURLopener.__init__Ws���4�7>���@W�6X�Y���
�c�-�!�<�<�<�<��?� �l�l�G��w��'�'�D�D�)D�D�D�'��������,�,��
����+�.�.���(�$�,�7�8�������	��
����!��
�
�
rgc�.�|���dSri)rr�s rf�__del__zURLopener.__del__qs���
�
�����rgc�.�|���dSri)�cleanupr�s rfrzURLopener.closets���������rgc���|jr:|jD](}	|�|���#t$rY�%wxYw|jdd�=|jr|j���dSdSri)r�r�r�r�r�)r�rks  rfr�zURLopener.cleanupws�����	$��(�
�
����M�M�$�'�'�'�'�������D������ ����#��>�	#��N� � �"�"�"�"�"�	#�	#s�(�
5�5c�:�|j�|��dS)zdAdd a header to be used by the HTTP interface only
        e.g. u.addheader('Accept', 'sound/basic')N)r�r})r�rs  rf�	addheaderzURLopener.addheader�s ��	
����t�$�$�$�$�$rgc�B�tt|����}t|d���}|jr:||jvr1|j|\}}t	|d��}t|||��St
|��\}}|sd}||jvr6|j|}t
|��\}}	t|	��\}
}|
|f}nd}d|z}||_	|�
dd��}t||��s/|r|�|||��S|�
||��S	|�t||��|��St||��||��S#t$r�t j$r(}
t%t'd	|
����Yd}
~
dSd}
~
wwxYw)
z6Use URLopener().open(file) instead of open(file, 'r').z%/:=&?~#+!$,;'@()*[]|��safer�rkN�open_�-r�zsocket error)rr'rr�r
r)rr�rr�rcr��open_unknown_proxy�open_unknownrrr/r�r�IOError)r�rrar�r�r��urltyper`r|�	proxyhostr�r�r{r�s              rfr
zURLopener.open�s�����'�*�*�+�+����&=�>�>�>���>�	4�g���7�7� $��w� 7��H�g��h��%�%�B��b�'�7�3�3�3� ��)�)�����	��G��d�l�"�"��L��)�E�!*�5�!1�!1��G�Y�&�y�1�1�N�D�(���/�C�C��E��� ����	��|�|�C��%�%���t�T�"�"�	8��
8��.�.�u�g�t�D�D�D��(�(��$�7�7�7�	?��|�*�w�t�T�*�*�3�/�/�/�*�w�t�T�*�*�3��5�5�5���	�	�	���|�	?�	?�	?� ����!=�!=�>�>�>�>�>�>�>�>�>�����	?���s�(E�E�F�6F�Fc�H�t|��\}}tdd|���)�/Overridable interface to open unknown URL type.�	url errorzunknown url type�rr�)r�rrar�r`s     rfr�zURLopener.open_unknown�s&���g�&�&�	��c��k�#5�t�<�<�<rgc�N�t|��\}}tdd|z|���)r�r�zinvalid proxy for %sr�)r�r|rrar�r`s      rfr�zURLopener.open_unknown_proxy�s+���g�&�&�	��c��k�#9�D�#@�%�H�H�Hrgc���tt|����}|jr||jvr
|j|St|��\}}|��|r|dkry	|�|��}|���}|���tt|��d��|fS#t$r
}	Yd}	~	nd}	~	wwxYw|�
||��}	|���}
|rt|d��}n�ddl}t|��\}
}t|pd��\}
}t|pd��\}}
t|pd��\}}
tj�|��d}|j|��\}}|j�|��tj|d��}	||
f}|j�
||j|<d}d}d}d}d	|
vrt+|
d
��}|r
||||��	|�|��}|sn<|t/|��z
}|�|��|dz
}|r
||||���T	|���n#|���wxYw	|���n#|���wxYw|dkr||krt3d||fz|���|S)ztretrieve(url) returns (filename, headers) for a local object
        or (tempfilename, headers) for a remote object.Nrkrrlrr�rnrorprqrr)rr'r�rr�rurrFrr�r
ryr$r#rvrw�splitext�mkstempr�r}�fdopenrr~rr�r)r�r`r�r�rar��url1r�r�r�r�r�ry�garbagerw�suffix�fdr�r�r�r~r�r�s                       rf�retrievezURLopener.retrieve�s(���X�c�]�]�#�#���>�	'�c�T�^�3�3��>�#�&�&��s�^�^�
��d���T��T�V�^�^�
��)�)�$�/�/���w�w�y�y�����
�
�
�#�I�d�O�O�A�$6�7�7��=�=���
�
�
����������
����
�Y�Y�s�D�
!�
!��&	��g�g�i�i�G��
*��8�T�*�*������� )�#���
��� )�$�*�"� 5� 5�
��� *�4�:�2� 6� 6�
��g� )�$�*�"� 5� 5�
��g���)�)�$�/�/��2��!1��!1�&�!9�!9���X�� �'�'��1�1�1��i��D�)�)��
�!�7�*���>�-�*0�D�N�3�'���������#�w�.�.��w�'7�8�9�9�D��3��J�x��T�2�2�2�7��G�G�B�K�K�E� ����C��J�J�&�D��I�I�e�$�$�$���M�H�!�7�"�
�8�R��6�6�6�7���	�	�������	�	����������H�H�J�J�J�J��B�H�H�J�J�J�J�����1�9�9�����&�C���,�� &�(�(�
(��
s9�A B8�8
C�C�&C J&�BI7�"J&�7J
�
J&�&J<c�2�d}d}t|t��r8t|��\}}|r!t|��\}}t	|��}|}n�|\}}t|��\}}t|��\}	}
|
}d}|	���dkrd}nBt|
��\}}
|rt|��\}}|r	|	�d|�|
��}t|��r|}|stdd���|rIt	|��}tj
|������d��}nd}|rIt	|��}tj
|������d��}nd}||��}
i}|rd|z|d<|rd|z|d	<|r||d
<d|d<|j
D]
\}}|||<�|�d
|d<|
�d|||��n|
�d||���	|
���}n"#t j$rt%d���wxYwd|jcxkrdkr"nnt)||jd|z|j��S|�||j|j|j|j|��S)a�Make an HTTP connection using connection_class.

        This is an internal method that should be called from
        open_http() or open_https().

        Arguments:
        - connection_factory should take a host name and return an
          HTTPConnection instance.
        - url is the url to retrieval or a host, relative-path pair.
        - data is payload for a POST request or None.
        Nr(�://z
http errorr8r�zBasic %sr,r�r�rrDr9zContent-Typer�r�rGz$http protocol error: bad status linerLrM�http:)rrrr!rrr�r�r�r�r�r�rr�r�rIr7�
BadStatusLiner�statusr)r��
http_errorr�rK)r��connection_factoryr`ra�user_passwd�proxy_passwdr�r��realhostr�r��
proxy_authr��	http_connr��headerr�r�s                  rf�_open_generic_httpzURLopener._open_generic_http�s2�������c�3���	$�&�s�^�^�N�D�(��
%�$-�d�O�O�!��T��t�}�}���H�H� �N�D�(�!*�4����L�$�%�h�/�/�M�G�T��C��K��}�}���&�(�(����!*�4�����$��@�,5�h�,?�,?�)�K���G�.5�g�g�x�x���F�H���)�)�$�#�D��A�7�<��A�A�A��	�"�<�0�0�L��)�,�*=�*=�*?�*?�@�@�G�G��P�P�J�J��J��	�!�+�.�.�K��#�K�$6�$6�$8�$8�9�9�@�@��I�I�D�D��D�&�&�t�,�,�	����	E�-7�*�-D�G�)�*��	:�(2�T�(9�G�O�$��	'�&�G�F�O�
!(����!�_�	$�	$�M�F�E�#�G�F�O�O���&I�G�N�#����f�h��g�>�>�>�>����e�X�w��?�?�?�	C� �,�,�.�.�H�H���(�	C�	C�	C��A�B�B�B�	C�����(�/�'�'�'�'�C�'�'�'�'�'��h���g��m�&�o�/�/�
/��?�?��X�[�����(�,��F�F�
Fs�H�H4c�D�|�tj||��S)zUse HTTP protocol.)r
r7rT�r�r`ras   rf�	open_httpzURLopener.open_httpXs���&�&�{�'A�3��M�M�Mrgc���d|z}t||��r6t||��}|�||||||��}	n|||||||��}	|	r|	S|�|||||��S)z�Handle http errors.

        Derived class can override this, or provide specific handlers
        named http_error_DDD where DDD is the 3-digit error code.z
http_error_%d)r�rr+)
r�r`r��errcode�errmsgr�rar{r�r�s
          rfrzURLopener.http_error\s�����(���4����	%��T�4�(�(�F��|����R��&�'�B�B������R��&�'�4�H�H���$�f�}��&�&�s�B����I�I�Irgc�P�|���t||||d���)z>Default error handler: close the connection and raise IOError.N)rr�r�r`r�rrr�s      rfr+zURLopener.http_error_defaultls%��
���
�
�
���W�f�g�t�<�<�<rgc�D�tj||j|j���S)N)r�r�)r7r6r�r�)r�r�s  rf�_https_connectionzURLopener._https_connectionrs,���.�t�48�M�59�^�E�E�E�
Ergc�:�|�|j||��S)zUse HTTPS protocol.)r
rrs   rf�
open_httpszURLopener.open_httpsws���*�*�4�+A�3��M�M�Mrgc�
�t|t��std���|dd�dkr=|dd�dkr/|dd����dkrt	d	���|�|��S)
z/Use local file or FTP depending on form of URL.zEfile error: proxy support for file protocol currently not implementedNr)r{rLrl�z
localhost/r~)rrrr�rUr�)r�r`s  rf�	open_filezURLopener.open_file{s����#�s�#�#�	d��b�c�c�c��r��r�7�d�?�?�s�1�Q�3�x�3���3�q��t�9�?�?�3D�3D��3T�3T��L�M�M�M��'�'��,�,�,rgc�\�ddlmcmcm}ddl}t|��\}}t
|��}	tj|��}n,#t$r}t|j|j���d}~wwxYw|j
}	|�|jd���}
|�|��d}tjd|pd|	|
fz��}|s4|}
|dd�dkrd	|z}
t%t'|d
��||
��St)|��\}}|s�t+j|��t/��ft1��zvrU|}
|dd�dkrd	|z}
n |dd�dkrt3d
|z���t%t'|d
��||
��Std���)zUse local file.rNTr�z6Content-Type: %s
Content-Length: %d
Last-modified: %s
r�rrlr�r�r)z./zAlocal file url may start with / or file:. Unknown url of type: %sz#local file error: not on local host)r�rbrr�r�rrFrvr�r�r�strerrorr�r�r�r�r�r�r)r
r r/r�r}�thishostrU)r�r`r�r�r�rk�	localnamer��er�r�r�r��urlfiler�s               rfr�zURLopener.open_local_file�s���:�:�:�:�:�:�:�:�:�:�:�:������s�^�^�
��d� ��&�&�	�	3��G�I�&�&�E�E���	3�	3�	3��1�:�q�z�2�2�2�����	3�����}���)�)�%�.��)�F�F���$�$�S�)�)�!�,���+�G�
�
"�l�D�(�3�
4�5�5���	G��G��B�Q�B�x�3���#�d�*���d�9�d�3�3�W�g�F�F�F��t�_�_�
��d��	G��#�D�)�)�y�{�{�n�x�z�z�.I�J�J��G��B�Q�B�x�3���#�d�*����b�q�b��T�!�!� �!d�gj�!j�k�k�k��d�9�d�3�3�W�g�F�F�F��<�=�=�=s�A�
A1�A,�,A1c��t|t��std���ddl}t	|��\}}|std���t|��\}}t
|��\}}|rt|��\}}nd}t|��}t|pd��}t|pd��}tj
|��}|sddl}|j}nt|��}t|��\}}	t|��}|�d��}
|
dd�|
d}}
|
r|
ds
|
dd�}
|
r
|
dsd|
d<|||d�|
��f}t#|j��t&krK|j���D]1}
|
|kr)|j|
}|j|
=|����2	||jvrt-|||||
��|j|<|sd	}nd
}|	D]D}t/|��\}}|���dkr|dvr|���}�E|j|�||��\}}|�d
|z��d}d}|r|d|zz
}|�|dkr|d|zz
}t9j|��}t=||d
|z��S#t?��$r*}tAtd|z����Yd}~dSd}~wwxYw)zUse FTP protocol.zCftp error: proxy support for ftp protocol currently not implementedrNr�r�rlrorr�r�r�r�zftp:zContent-Type: %s
zContent-Length: %d
zftp error %r)!rrrr�rr r!r"rr/r�r�r�rr#r�r�rr��MAXFTPCACHEr�rr�r%r�r�r�r�rr�r)�	ftperrorsr)r�r`r�r�rwr�r�r�r�r�r�rkr�r_r`r�r�r�r�r�r�r�r�s                       rf�open_ftpzURLopener.open_ftp�s\���#�s�#�#�	b��`�a�a�a������s�^�^�
��d��?�8�$>�?�?�?��t�_�_�
��d��t�_�_�
��d��	��D� 1� 1���v�v��f��t�}�}���t�z�r�"�"�����2�&�&���#�D�)�)���	��M�M�M��?�D�D��t�9�9�D���o�o���e��t�}�}���z�z�#�����#�2�#�Y��R��d���0��Q��0��Q�R�R����.��Q��.�3��a���D�$�������.���t�}����+�+��]�'�'�)�)�
�
����8�8��
�a�(�A��
�a�(��G�G�I�I�I��	A��$�-�'�'��t�V�T�4��>�>��
�c�"��
�����$��
)�
)��(��.�.���e��:�:�<�<�6�)�)��:�:�:� �;�;�=�=�D�� �M�#�.�7�7��d�C�C�M�R���(�(��#��6�6�q�9�E��G��
8��/�%�7�7���"�w�!�|�|��1�G�;�;���/��8�8�G��b�'�6�C�<�8�8�8���{�{�	A�	A�	A� ��.�3�*>�!?�!?�@�@�@�@�@�@�@�@�@�����	A���s�C7K�L	�L�L	c
���t|t��std���	|�dd��\}}n#t$rtdd���wxYw|sd}|�d��}|dkr$d	||d
�vr||dzd
�}|d
|�}nd}g}|�dtj	d
tj
tj������z��|�d|z��|dkr;tj|�
d�����d��}nt|��}|�dt!|��z��|�d��|�|��d�|��}t%j|��}t)j|��}t-|||��S)zUse "data" URL.zEdata error: proxy support for data protocol currently not implementedrsrz
data errorzbad data URLztext/plain;charset=US-ASCII�;rrmNr�zDate: %sz%a, %d %b %Y %H:%M:%S GMTzContent-type: %sr�r�zlatin-1zContent-Length: %d�
)rrrr�rUr��rfindr}r��strftime�gmtimer��decodebytesr�rrrr�rr��io�StringIOr))	r�r`rar��semi�encodingr�r��fs	         rf�	open_datazURLopener.open_data�s����#�s�#�#�	d��b�c�c�c�	8��9�9�S�!�,�,�L�T�4�4���	8�	8�	8��,��7�7�7�	8�����	1�0�D��z�z�#�����1�9�9��D����K�/�/��D��F�G�G�}�H�����;�D�D��H����
�
�:�d�m�,G�,0�K��	���,D�,D�F�F�F�	G�	G�	G��
�
�%��,�-�-�-��x����%�d�k�k�'�&:�&:�;�;�B�B�9�M�M�D�D��4�=�=�D��
�
�'�#�d�)�)�3�4�4�4��
�
�2�����
�
�4�����i�i��n�n���+�C�0�0���K������!�W�c�*�*�*s�A�Ari�NNN)r�r�r�rPr�r�r�r�r�rr�r�r
r�r�r�r
rrr+rTrrrr�r&r3r�rgrfrJrJJs����������K� �;�.�G�!�!�!�!�4������#�#�#�%�%�%�"?�"?�"?�"?�H=�=�=�=�
I�I�I�I�>�>�>�>�DZF�ZF�ZF�xN�N�N�N�J�J�J�J� =�=�=�
�N�	E�	E�	E�
	N�	N�	N�	N�-�-�-�>�>�>�@8A�8A�8A�t'+�'+�'+�'+�'+�'+rgrJc��eZdZdZd�Zd�Zdd�Zd�Zdd�Zdd�Z	dd	�Z
		dd�Z		dd�Zdd
�Z
dd�Zdd�Zdd�Zdd�Zd�ZdS)rKz?Derived class with handlers for errors we can handle (perhaps).c�Z�tj|g|�Ri|��i|_d|_d|_dS)NrrV)rJr��
auth_cache�tries�maxtries)r�r�kwargss   rfr�zFancyURLopener.__init__s<����4�1�$�1�1�1�&�1�1�1������
���
�
�
rgc�,�t||d|z|��S)z3Default error handling -- don't raise an exception.r)r)rs      rfr+z!FancyURLopener.http_error_defaults���"�g�w��}�g�>�>�>rgNc��|xjdz
c_|jrE|j|jkr5t|d��r|j}n|j}d|_|||dd|��S|�||||||��}d|_|S)z%Error 302 -- relocated (temporarily).r�http_error_500rrBz)Internal Server Error: Redirect Recursion)r8r9r�r=r+�redirect_internal)	r�r`r�rrr�rarr�s	         rfrvzFancyURLopener.http_error_302s����
�
�a��
�
��=�	N�T�Z�4�=�8�8��t�-�.�.�
/��*����.���D�J��4��R��C�W�N�N�
N��'�'��R��&�'�(,�.�.����
��
rgc�$�d|vr	|d}nd|vr	|d}ndS|���t|jdz|z|��}t|��}|jdvrt|||d|zz||���|�|��S)Nrhrir�rjz( Redirection to url '%s' is not allowed.)rrr�rrorr
)	r�r`r�rrr�rardrss	         rfr>z FancyURLopener.redirect_internal%s����� � ��Z�(�F�F�
�g�
�
��U�^�F�F��F�
���
�
�
����S��3�.��7�7���F�#�#���?�">�>�>��F�G�"�F��O�P�#�R�)�)�
)�
�y�y�� � � rgc�6�|�||||||��S)z*Error 301 -- also relocated (permanently).�rv�r�r`r�rrr�ras       rfrwzFancyURLopener.http_error_301A� ���"�"�3��G�V�W�d�K�K�Krgc�6�|�||||||��S)z;Error 303 -- also relocated (essentially identical to 302).rArBs       rfrxzFancyURLopener.http_error_303ErCrgc�l�|�|�||||||��S|�|||||��S)z1Error 307 -- relocated, but turn POST into error.)rvr+rBs       rfryzFancyURLopener.http_error_307IsA���<��&�&�s�B����$�O�O�O��*�*�3��G�V�W�M�M�MrgFc�*�d|vrt�||||||��|d}tjd|��}	|	st�||||||��|	���\}
}|
���dkrt�||||||��|st�||||||��d|jzdz}|�t||��||��St||��|||��S)z_Error 401 -- authentication required.
        This function supports Basic authentication only.r��![ 	]*([^ 	]+)[ 	]+realm="([^"]*)"r��retry_�_basic_auth�rJr+r��matchr�r�r�r�
r�r`r�rrr�rar*�stuffrKror�r{s
             rfr�zFancyURLopener.http_error_401PsN���W�,�,��(�(��s�B�)0�&�'�
C�
C�
C��*�+����?��G�G���	C��(�(��s�B�)0�&�'�
C�
C�
C������
����<�<�>�>�W�$�$��(�(��s�B�)0�&�'�
C�
C�
C��	��(�(��s�B����
�
�
��$�)�#�m�3���<�%�7�4��%�%�c�5�1�1�1�%�7�4��%�%�c�5�$�7�7�7rgc�*�d|vrt�||||||��|d}tjd|��}	|	st�||||||��|	���\}
}|
���dkrt�||||||��|st�||||||��d|jzdz}|�t||��||��St||��|||��S)zeError 407 -- proxy authentication required.
        This function supports Basic authentication only.r�rGr��retry_proxy_rIrJrLs
             rfr�zFancyURLopener.http_error_407isN�� �w�.�.��(�(��s�B�)0�&�'�
C�
C�
C��,�-����?��G�G���	C��(�(��s�B�)0�&�'�
C�
C�
C������
����<�<�>�>�W�$�$��(�(��s�B�)0�&�'�
C�
C�
C��	��(�(��s�B����
�
�
���	�)�M�9���<�%�7�4��%�%�c�5�1�1�1�%�7�4��%�%�c�5�$�7�7�7rgc���t|��\}}d|z|z}|jd}t|��\}}	t|	��\}	}
|	�d��dz}|	|d�}	|�|	||��\}}
|s|
sdSt|d����dt|
d����d|	��}	d|	z|
z|jd<|�|�|��S|�||��S)N�http://r(�@rr�r�r��rr�rr�get_user_passwdrr
�r�r`r�rar�r�rdr|r�r��
proxyselectorrr�r�s              rf�retry_proxy_http_basic_authz*FancyURLopener.retry_proxy_http_basic_auth�s��"�3�����h��T�!�H�,����V�$��&�u�-�-����#,�Y�#7�#7� �	�=��N�N�3���!�#���a�b�b�M�	��+�+�I�u�a�@�@���f��,��,���"'��2�"6�"6�"6�"6�"6�"'��R�"8�"8�"8�"8�"8�)�)�E�	�(�9�4�}�D���V���<��9�9�V�$�$�$��9�9�V�T�*�*�*rgc���t|��\}}d|z|z}|jd}t|��\}}	t|	��\}	}
|	�d��dz}|	|d�}	|�|	||��\}}
|s|
sdSt|d����dt|
d����d|	��}	d|	z|
z|jd<|�|�|��S|�||��S)N�https://r�rRrr�r�r�rSrUs              rf�retry_proxy_https_basic_authz+FancyURLopener.retry_proxy_https_basic_auth�s��"�3�����h��d�"�X�-����W�%��&�u�-�-����#,�Y�#7�#7� �	�=��N�N�3���!�#���a�b�b�M�	��+�+�I�u�a�@�@���f��,��,���"'��2�"6�"6�"6�"6�"6�"'��R�"8�"8�"8�"8�"8�)�)�E�	� *�Y� 6�� F���W���<��9�9�V�$�$�$��9�9�V�T�*�*�*rgc�d�t|��\}}|�d��dz}||d�}|�|||��\}}|s|sdSt|d����dt|d����d|��}d|z|z}	|�|�|	��S|�|	|��S)NrRrr�r�r�rQ�rrrTrr
�
r�r`r�rar�r�rr�r�rds
          rfr�z$FancyURLopener.retry_http_basic_auth�s���"�3�����h��I�I�c�N�N�Q����A�B�B�x���+�+�D�%��;�;���f��,��,���"�4�b�1�1�1�1�1�"�6��3�3�3�3�3�T�T�;���T�!�H�,���<��9�9�V�$�$�$��9�9�V�T�*�*�*rgc�d�t|��\}}|�d��dz}||d�}|�|||��\}}|s|sdSt|d����dt|d����d|��}d|z|z}	|�|�|	��S|�|	|��S)NrRrr�r�r�rYr\r]s
          rf�retry_https_basic_authz%FancyURLopener.retry_https_basic_auth�s���"�3�����h��I�I�c�N�N�Q����A�B�B�x���+�+�D�%��;�;���f��,��,���"�4�b�1�1�1�1�1�"�6��3�3�3�3�3�T�T�;���d�"�X�-���<��9�9�V�$�$�$��9�9�V�T�*�*�*rgrc���|dz|���z}||jvr|r	|j|=n
|j|S|�||��\}}|s|r||f|j|<||fS)NrR)r�r7�prompt_user_passwd)r�r�r�r�r�r�r�s       rfrTzFancyURLopener.get_user_passwd�s����c�k�D�J�J�L�L�(���$�/�!�!��
,��O�C�(�(���s�+�+��.�.�t�U�;�;���f��@�6�@�4��.�4�?�3�/��V�|�rgc	��ddl}	td|�d|�d���}|�d|�d|�d|�d���}||fS#t$rt��YdSwxYw)	z#Override this in a GUI environment!rNzEnter username for z at z: zEnter password for z in r�)�getpassr
�KeyboardInterrupt�print)r�r�r�rcr�r�s      rfraz!FancyURLopener.prompt_user_passwd�s�������	��5�E�E�E�4�4�4�H�I�I�D��_�_�_����u�u�u�d�d�d�&$�%�%�F���<��� �	�	�	��G�G�G��:�:�	���s�8?�A�Ari)NFrQ)r�r�r�rPr�r+rvr>rwrxryr�r�rWrZr�r_rTrar�rgrfrKrKsR������I�I����?�?�?����� !�!�!�8L�L�L�L�L�L�L�L�N�N�N�N�FJ��8�8�8�8�2FJ��8�8�8�8�2+�+�+�+�$+�+�+�+�$+�+�+�+�+�+�+�+�	�	�	�	�
�
�
�
�
rgrKc�F�t�tjd��atS)z8Return the IP address of the magic hostname 'localhost'.Nr})�
_localhostr/r�r�rgrfr}r}�s �����)�+�6�6�
��rgc�
�t�v	ttjtj����d��an<#tj$r*ttjd��d��aYnwxYwtS)z,Return the IP addresses of the current host.Nr)r})�	_thishostr�r/r�r�r�r�rgrfrr�s�����	G��f�5�f�6H�6J�6J�K�K�A�N�O�O�I�I����	G�	G�	G��f�5�k�B�B�1�E�F�F�I�I�I�	G�����s�8A�6A;�:A;c�4�t�ddl}|jatS)z1Return the set of errors raised by the FTP class.Nr)�
_ftperrorsr�r�)r�s rfr%r%�s!�����
�
�
��&�
��rgc�F�t�tjd��atS)z%Return an empty email Message object.Nr�)�
_noheadersrr�r�rgrf�	noheadersrn�s �����.�r�2�2�
��rgc�B�eZdZdZ		dd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
dS)r�z;Class used by open_ftp() for cache of open FTP connections.NTc��||_||_||_||_||_||_d|_||_|���dSr�)	r�r�r�r�r�rb�refcount�	keepalive�init)r�r�r�r�r�r�rbr�s        rfr�zftpwrapper.__init__	sK����	������	���	���	������
�#����	�	�����rgc�V�ddl}d|_|���|_|j�|j|j|j��|j�|j	|j
��d�|j��}|j�
|��dS)Nrrl)r��busy�FTPrk�connectr�r�rb�loginr�r�r�r��cwd)r�r��_targets   rfrszftpwrapper.init	s����
�
�
���	��:�:�<�<���������D�I�t�|�<�<�<�����t�y�$�+�.�.�.��(�(�4�9�%�%������W�����rgc�l�ddl}|���|dvrd}d}nd|z}d}	|j�|��n>#|j$r1|���|j�|��YnwxYwd}|rw|su	d|z}|j�|��\}}nQ#|j$rD}t|��dd�dkrttd	|z����Yd}~nd}~wwxYw|s�|j�d��|r�|j���}			|j�|��n-#|j$r }td	|z��}
||
_
|
�d}~wwxYw	|j�|	��n#|j�|	��wxYwd
|z}nd}|j�|��\}}d|_t|�d��|j��}|xjdz
c_|���||fS)
Nr)r$r�zTYPE ArzTYPE zRETR rL�550r�zLIST �LISTr�)r��endtransferrk�voidcmdr�rs�ntransfercmd�
error_permrrr�pwdry�	__cause__rur*�makefile�
file_closerqr)r�rkr�r��cmd�isdirr�r�rKr�r��ftpobjs            rfr�zftpwrapper.retrfile	s����
�
�
��������:���X�s�q�u�u��d�N�c�A�E�	"��H���S�!�!�!�!��� �	"�	"�	"��I�I�K�K�K��H���S�!�!�!�!�!�	"�������	M��	M�
M���n�� $�� 5� 5�c� :� :�
��g�g���$�
M�
M�
M��v�;�;�r��r�?�e�+�+�(��/�F�2J�)K�)K�L�L�L����������
M�����	7��H���X�&�&�&��
��h�l�l�n�n��
&�"�����T�*�*�*�*��!�,�"�"�"�'���'?�@�@��(.��
�!�	�����"����+��H�L�L��%�%�%�%��D�H�L�L��%�%�%�%������n����� �H�1�1�#�6�6�M�D�'���	��d�m�m�D�1�1�4�?�C�C���
�
���
�
��
�
������ � sS�A�8B�?B�
"B-�-
C;�7:C6�6C;�7E�F�
E<�E7�7E<�<F�F7c��d|_dSr�)rur�s rfr~zftpwrapper.endtransferK	s
����	�	�	rgc�V�d|_|jdkr|���dSdS)NFr)rrrq�
real_closer�s rfrzftpwrapper.closeN	s4������=�A����O�O�������rgc��|���|xjdzc_|jdkr|js|���dSdSdS)Nrr)r~rqrrr�r�s rfr�zftpwrapper.file_closeS	s\���������
�
���
�
��=�A���d�n���O�O���������rgc��|���	|j���dS#t��$rYdSwxYwri)r~rkrr%r�s rfr�zftpwrapper.real_closeY	sW��������	��H�N�N��������{�{�	�	�	��D�D�	���s�1�A�A)NT)r�r�r�rPr�rsr�r~rr�r�r�rgrfr�r�	s�������E�E�?C� �
�
�
�
����.!�.!�.!�`������
�������rgr�c��i}tj���D]6\}}|���}|r|dd�dkr
|||dd�<�7|S)aReturn a dictionary of scheme -> proxy server URL mappings.

    Scan the environment for variables named <scheme>_proxy;
    this seems to be the standard convention.  If you need a
    different way, you can pass a proxies dictionary to the
    [Fancy]URLopener constructor.

    i����N�_proxy)rv�environr�r�)r�r{r�s   rf�getproxies_environmentr�a	si���G��z�'�'�)�)�'�'���e��z�z�|�|���	'�T�"�#�#�Y�(�*�*�!&�G�D��"��I����Nrgc�`�tj�dd��ptj�dd��}|dkrdSt|��\}}d�|�d��D��}|D]1}|r-|�|��s|�|��rdS�2dS)	z�Test if proxies should not be used for a particular host.

    Checks the environment for a variable named no_proxy, which should
    be a list of DNS suffixes separated by commas, or '*' for all hosts.
    �no_proxyr��NO_PROXY�*rc�6�g|]}|�����Sr�ru)r^r|s  rfr�z,proxy_bypass_environment.<locals>.<listcomp>~	s ��D�D�D�u�U�[�[�]�]�D�D�Drgrsr)rvr�r�r r��endswith)r�r��hostonlyr��
no_proxy_listr{s      rf�proxy_bypass_environmentr�q	s����z�~�~�j�"�-�-�O�����
�B�1O�1O�H��3����q��t�_�_�N�H�d�D�D����s�0C�0C�D�D�D�M������	�X�&�&�t�,�,�	��
�
�d�0C�0C�	��1�1���1rgc�p�ddlm}t|��\}}d�}d|vr
|drdSd}|�dd	��D]�}|s�tjd
|��}|��|�6	tj|��}||��}n#t
j$rY�PwxYw||�d����}	|�d��}
|
�/d
|�d���	d��dzz}
nt|
dd���}
d|
z
}
||
z	|	|
z	krdS��|||��rdS��dS)aj
    Return True iff this host shouldn't be accessed using a proxy

    This function uses the MacOSX framework SystemConfiguration
    to fetch the proxy information.

    proxy_settings come from _scproxy._get_proxy_settings or get mocked ie:
    { 'exclude_simple': bool,
      'exceptions': ['foo.bar', '*.bar.com', '127.0.0.1', '10.1', '10.0/16']
    }
    r)�fnmatchc��|�d��}ttt|����}t	|��dkr|gd�zdd�}|ddz|ddzz|dd	zz|d
zS)N�.rU)rrrrr�rr�r)r�rL)r�r�rrr)�ipAddrr�s  rf�ip2numz,_proxy_bypass_macosx_sysconf.<locals>.ip2num�	s�����S�!�!���S��e�_�_�%�%���u�:�:��?�?��\�\�\�)�2�A�2�.�E��a��B��5��8�r�>�2�e�A�h�!�m�D�u�Q�x�O�Orgr��exclude_simpleTN�
exceptionsr�z(\d+(?:\.\d+)*)(/\d+)?rr)r�� F)r�r r�r�rKr/r�r��group�countr)r��proxy_settingsr�r�r�r��hostIPr�rer��masks           rf�_proxy_bypass_macosx_sysconfr��	s��� �������t�_�_�N�H�d�P�P�P��$����*�+�	��4�
�F��#�#�L�"�5�5������h��H�.��6�6���=��~��#�1�(�;�;�F�#�V�F�^�^�F�F���|�����H������6�!�'�'�!�*�*�%�%�D��7�7�1�:�:�D��|��A�G�G�A�J�J�,�,�S�1�1�A�5�6����4����8�}�}����9�D��$��D�D�L�1�1��t�t�2��W�T�5�
!�
!�	��4�4�	��5s�!B�B�B�darwin)�_get_proxy_settings�_get_proxiesc�>�t��}t||��Sri)r�r�)r�r�s  rf�proxy_bypass_macosx_sysconfr��	s��,�.�.��+�D�.�A�A�Argc��t��S)z�Return a dictionary of scheme -> proxy server URL mappings.

        This function uses the MacOSX framework SystemConfiguration
        to fetch the proxy information.
        )r�r�rgrf�getproxies_macosx_sysconfr��	s���~�~�rgc�Z�t��rt|��St|��Sri)r�r�r�r�s rfr�r��	s,��!�#�#�	5�+�D�1�1�1�.�t�4�4�4rgc�:�t��p
t��Sri)r�r�r�rgrfrGrG�	s��%�'�'�F�+D�+F�+F�Frgc�j�i}	ddl}n#t$r|cYSwxYw	|�|jd��}|�|d��d}|r�t|�|d��d��}d|vrS|�d��D]<}|�dd��\}}tjd	|��s|�d
|��}|||<�=n,|dd�dkr||d
<nd|z|d
<d|z|d<d|z|d<|�	��n#tttf$rYnwxYw|S)zxReturn a dictionary of scheme -> proxy server URL mappings.

        Win32 uses the registry to store proxies.

        rN�;Software\Microsoft\Windows\CurrentVersion\Internet Settings�ProxyEnable�ProxyServerrmr(rz^([^/:]+)://rr�rr(z	http://%sz
https://%sr�zftp://%srk)
�winreg�ImportError�OpenKey�HKEY_CURRENT_USER�QueryValueExrr�r�rK�Close�WindowsErrorrUr�)r�r��internetSettings�proxyEnable�proxyServer�pr	�addresss        rf�getproxies_registryr��	s�����	��M�M�M�M���	�	�	��N�N�N�	����	�%�~�~�f�.F�N� P� P�� �-�-�.>�/<�>�>�>?�A�K��
B�!�&�"5�"5�6F�7D�#F�#F�FG�#I�J�J���+�%�%�(�.�.�s�3�3�4�4��,-�G�G�C��O�O�)��'�!�x���@�@�F�3;�8�8�W�W�&E�G�,3���)�)�4�#�2�A�2��'�1�1�*5�����*5��*C����+7�+�+E���(�)3�k�)A�����"�"�$�$�$�$���j�)�4�	�	�	�
�D�		����
�s�	���C9D�D0�/D0c�:�t��p
t��S�z�Return a dictionary of scheme -> proxy server URL mappings.

        Returns settings gathered from the environment, if specified,
        or the registry.

        )r�r�r�rgrfrGrG
s��&�'�'�@�+>�+@�+@�@rgc��	ddl}n#t$rYdSwxYw	|�|jd��}|�|d��d}t|�|d��d��}n#t$rYdSwxYw|r|sdSt|��\}}|g}	tj	|��}||kr|�
|��n#tj$rYnwxYw	tj|��}||kr|�
|��n#tj$rYnwxYw|�
d��}|D]z}	|	dkrd|vrdS|	�dd	��}	|	�d
d��}	|	�dd��}	|D]&}
tj|	|
tj��rdS�'�{dS)
Nrr�r��
ProxyOverrider(z<local>r�rz\.r�z.*�?)r�r�r�r�r�rr�r r/r�r}r��getfqdnr�rcr�rKr�)r�r�r�r��
proxyOverride�rawHostr��addr�fqdnr�r�s           rf�proxy_bypass_registryr�
s_��	��M�M�M�M���	�	�	��1�1�	����		�%�~�~�f�.F�N� P� P�� �-�-�.>�/<�>�>�>?�A�K��� 3� 3�4D�5D�!F�!F�FG�!I�J�J�M�M���	�	�	��1�1�	�����	�-�	��1�!�$���
����y��	��'��0�0�D��w������D�!�!�!����|�	�	�	��D�	����	��>�'�*�*�D��w������D�!�!�!����|�	�	�	��D�	����
&�+�+�C�0�0�
�!�		�		�D��y� � ��g�%�%��1�1��<�<��U�+�+�D��<�<��U�+�+�D��<�<��T�*�*�D��
�
���8�D�#�r�t�,�,���1�1�1��
��qsB��
��A A:�:
B�B�'/C�C)�(C)�-/D�D/�.D/c�Z�t��rt|��St|��Sr�)r�r�r�r�s rfr�r�H
s.��"�#�#�	/�+�D�1�1�1�(��.�.�.rgr4)�rP�
__future__rrrr�future.builtinsrrr	r
rrr
r�future.utilsrrrr�rrr:�future.backportsr�future.backports.httprr7r�rrr�parserrrrrrrrr r!r"r#r$r%r&r'r(r�r)r*r.rvr�r�r/�sysr�ryrsr��collectionsr+�collections.abcrVr,rTr��__all__r�r�r_r0rBrCr|rHrIr��ASCIIr�r��objectr-r.rDr/rAr0r1r�r3r4r5r6r7r8�urandomrr9r:r;r/r<r�r^r}r2r@r�r�r=r�r>r?r$r{�
nturl2pathrFrEr�rJrKrgr}rirrkr%rmrnr�r�r�r��platform�_scproxyr�r�r�r�r�rGr�r�r�rgrf�<module>r�s�
��F�F�lS�R�R�R�R�R�R�R�R�R�R�R�K�K�K�K�K�K�K�K�K�K�K�K�K�K�K�K�K�K�K�K�7�7�7�7�7�7�7�7�7�7�
�
�
�
�
�
�
�
���������"�"�"�"�"�"�7�7�7�7�7�7�<�<�<�<�<�<�<�<�<�<�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�/�.�.�.�.�.�.�.�	�	�	�	�	�	�	�	�����	�	�	�	�
�
�
�
�
�
�
�
������������������������)�$�$�$�$�$�$�$�(�(�(�(�(�(���J�J�J��������I�I�������I�I�I�����
����"�k�"�1�"�o��
���F�$B�+�+�+�+�4�����=�=�=�=�~
�
�
��(��2�:�h���1�1�L�L��2�:�h�'�'�L����"w"�w"�w"�w"�w"�f�w"�w"�w"�rN+�N+�N+�N+�N+�V�N+�N+�N+�h$�$�$�L8�8�8�8�8�&�8�8�8�&#�#�#�#�#��#�#�#�";�;�;�;�;�k�;�;�;�e2�e2�e2�e2�e2�+�e2�e2�e2�PF,�F,�F,�P(>�(>�(>�(>�(>�;�(>�(>�(>�T=�=�=�=�=�f�=�=�=�@G�G�G�G�G�o�G�G�G�B�B�B�B�B�v�B�B�B�J	�	�	�	�	�3�[�	�	�	�
�
�
�
�
�4�k�
�
�
�"�z��J�J�J�J�J��J�J�J�Z�����K�)B����$
�
�
�
�
�[�*C�
�
�
�w�w�w�w�w�+�w�w�w�t3�3�3�3�3�%�3�3�3��7�;�)�*�*�#�8�8�8�8�8�*�8�8�8��N�N�>�"�"�"�#�#�#�#�#�+�#�#�#�$6�6�6�6�6�[�6�6�6�
���)*�)*�)*�V21�21�21�21�21�+�21�21�21�h���8,�8,�8,�8,�8,��8,�8,�8,�t3�3�3�3�3�j�3�3�3�p���7�d�?�?�5�5�5�5�5�5�5�5�5�!�!�!�
�����{+�{+�{+�{+�{+��{+�{+�{+�|
O�O�O�O�O�Y�O�O�O�h�
����
�	�����
�����
����[�[�[�[�[��[�[�[�|��� 
�
�
�.9�9�9�x�<�8���:�:�:�:�:�:�:�:�B�B�B����5�5�5�G�G�G�G�G��W��_�_�+�+�+�ZA�A�A�0�0�0�d
/�
/�
/�
/�
/�(�J�+�L�L�Ls�?
C�C�C

Hacked By AnonymousFox1.0, Coded By AnonymousFox