[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.218.212.107: ~ $
�

�f� ����dZddlmZmZddlmZmZmZmZm	Z	m
Z
mZdgd�fdgd�fdd	gfgdgd
�fdddgfgd
�Zed�
edd��d�ZGd�de��ZdS)z�Fix changes imports of urllib which are now incompatible.
   This is rather similar to fix_imports, but because of the more
   complex nature of the fixing for urllib, it has its own fixer.
�)�
alternates�
FixImports)�Name�Comma�
FromImport�Newline�find_indentation�Node�symszurllib.request)	�	URLopener�FancyURLopener�urlretrieve�
_urlopener�urlopen�
urlcleanup�pathname2url�url2pathname�
getproxieszurllib.parse)�quote�
quote_plus�unquote�unquote_plus�	urlencode�	splitattr�	splithost�
splitnport�splitpasswd�	splitport�
splitquery�splittag�	splittype�	splituser�
splitvaluezurllib.error�ContentTooShortError)r�install_opener�build_opener�Request�OpenerDirector�BaseHandler�HTTPDefaultErrorHandler�HTTPRedirectHandler�HTTPCookieProcessor�ProxyHandler�HTTPPasswordMgr�HTTPPasswordMgrWithDefaultRealm�AbstractBasicAuthHandler�HTTPBasicAuthHandler�ProxyBasicAuthHandler�AbstractDigestAuthHandler�HTTPDigestAuthHandler�ProxyDigestAuthHandler�HTTPHandler�HTTPSHandler�FileHandler�
FTPHandler�CacheFTPHandler�UnknownHandler�URLError�	HTTPError)�urllib�urllib2r?r>�c	#�K�t��}t���D]P\}}|D]H}|\}}t|��}d|�d|�d�V�d|�d|�d|�d�V�d|zV�d	|zV�d
|�d|�d�V��I�QdS)
Nzimport_name< 'import' (module=zB
                                  | dotted_as_names< any* module=z any* >) >
                  zimport_from< 'from' mod_member=z* 'import'
                       ( member=z | import_as_name< member=z] 'as' any > |
                         import_as_names< members=any*  >) >
                  zIimport_from< 'from' module_star=%r 'import' star='*' >
                  ztimport_name< 'import'
                                  dotted_as_name< module_as=%r 'as' any > >
                  zpower< bare_with_attr=z trailer< '.' member=z > any* >
                  )�set�MAPPING�itemsr)�bare�
old_module�changes�change�
new_module�memberss      �?/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_urllib.py�
build_patternrL0s�����5�5�D�&�}�}���.�.��
�G��	.�	.�F�"(��J�� ��)�)�G�G�$���Z�Z�Z�1�
1�
1�
1�
1�$���W�W�W�g�g�g�7�
7�
7�
7��"�#�
#�
#�
#��"�#�
#�
#�
#�
#�
$���W�W�W�.�
.�
.�
.�
.�!	.�.�.�c�,�eZdZd�Zd�Zd�Zd�Zd�ZdS)�	FixUrllibc�D�d�t����S)N�|)�joinrL)�selfs rKrLzFixUrllib.build_patternIs���x�x�
���(�(�(rMc��|�d��}|j}g}t|jdd�D]:}|�t|d|���t
��g���;|�tt|jdd|�����|�|��dS)z�Transform for the basic import case. Replaces the old
           import name with a comma separated list of its
           replacements.
        �moduleN���r��prefix)	�getrXrC�value�extendrr�append�replace)rS�node�results�
import_mod�pref�names�names       rK�transform_importzFixUrllib.transform_importLs���
�[�[��*�*�
�� �����J�,�-�c�r�c�2�	@�	@�D��L�L�$�t�A�w�t�4�4�4�e�g�g�>�?�?�?�?�
���T�'�*�"2�3�B�7��:�4�H�H�H�I�I�I����5�!�!�!�!�!rMc���|�d��}|j}|�d��}|r�t|t��r|d}d}t|jD]}|j|dvr
|d}n�|r&|�t||�����dS|�|d��dSg}i}	|d}
|
D]�}|j	tjkr%|jd	j}|jdj}n	|j}d}|d
krst|jD]`}||dvrT|d|	vr|�
|d��|	�|dg���
|���a��g}
t|��}d}d�}|D]�}|	|}g}|dd
�D]B}|�|||����|�
t#�����C|�||d
|����t%||��}|r|jj�|��r||_|
�
|��d}��|
rdg}|
dd
�D]%}|�|t+��g���&|�
|
d
��|�|��dS|�|d��dS)z�Transform for imports of specific module elements. Replaces
           the module to be imported from with the appropriate new
           module.
        �
mod_member�memberrNr@rW�!This is an invalid module elementrJ��,Tc�L�|jtjkryt|jdj|���|jd���|jd���g}ttj|��gSt|j|���gS)NrrWr@ri)�typer�import_as_namer�childrenrZ�cloner
)rcrX�kidss   rK�handle_namez/FixUrllib.transform_member.<locals>.handle_name�s����9�� 3�3�3� ���q�!1�!7��G�G�G� �M�!�,�2�2�4�4� �M�!�,�2�2�4�4�6�D�!��!4�d�;�;�<�<��T�Z��7�7�7�8�8rMrVFzAll module elements are invalid)rYrX�
isinstance�listrCrZr]r�cannot_convertrlrrmrnr\�
setdefaultr	r[rr�parent�endswithr)rSr^r_rfrarg�new_namerH�modules�mod_dictrJ�as_name�member_name�	new_nodes�indentation�firstrqrU�eltsrb�elt�new�nodes�new_nodes                        rK�transform_memberzFixUrllib.transform_member\s`��
�[�[��.�.�
�� �����X�&�&���@	M��&�$�'�'�
#������H�!�*�"2�3�
�
���<�6�!�9�,�,�%�a�y�H��E�-��
O��"�"�4���#>�#>�#>�?�?�?�?�?��#�#�D�*M�N�N�N�N�N�
�G��H��i�(�G�!�

N�

N���;�$�"5�5�5�$�o�a�0�6�G�"(�/�!�"4�":�K�K�"(�,�K�"�G��#�%�%�")�*�*:�";�N�N��&�&��)�3�3�%�a�y��8�8� '���v�a�y� 9� 9� 9�$�/�/��q�	�2�>�>�E�E�f�M�M�M����I�*�4�0�0�K��E�
9�
9�
9�"�
�
����'��������9�*�*�C��L�L���S�$�!7�!7�8�8�8��L�L����)�)�)�)����[�[��b��4�8�8�9�9�9� ���/�/���-��� 2� ;� ;�K� H� H�-�!,�C�J�� � ��%�%�%�����
M��� )�#�2�#��8�8�H��L�L�(�G�I�I�!6�7�7�7�7����Y�r�]�+�+�+����U�#�#�#�#�#��#�#�D�*K�L�L�L�L�LrMc�z�|�d��}|�d��}d}t|t��r|d}t|jD]}|j|dvr
|d}n�|r+|�t
||j�����dS|�|d��dS)z.Transform for calls to module members in code.�bare_with_attrrgNrr@rWrh)	rYrrrsrCrZr]rrXrt)rSr^r_�
module_dotrgrxrHs       rK�
transform_dotzFixUrllib.transform_dot�s����[�[�!1�2�2�
����X�&�&�����f�d�#�#�	��A�Y�F��j�.�/�	�	�F��|�v�a�y�(�(�!�!�9����)��	K����t�H�+5�+<� >� >� >�
?�
?�
?�
?�
?�
����&I�J�J�J�J�JrMc���|�d��r|�||��dS|�d��r|�||��dS|�d��r|�||��dS|�d��r|�|d��dS|�d��r|�|d��dSdS)NrUrfr��module_starzCannot handle star imports.�	module_asz#This module is now multiple modules)rYrdr�r�rt)rSr^r_s   rK�	transformzFixUrllib.transform�s���;�;�x� � �
	M��!�!�$��0�0�0�0�0�
�[�[��
&�
&�	M��!�!�$��0�0�0�0�0�
�[�[�)�
*�
*�	M����t�W�-�-�-�-�-�
�[�[��
'�
'�	M�����&C�D�D�D�D�D�
�[�[��
%�
%�	M�����&K�L�L�L�L�L�	M�	MrMN)�__name__�
__module__�__qualname__rLrdr�r�r��rMrKrOrOGsn������)�)�)�"�"�"� JM�JM�JM�XK�K�K�"M�M�M�M�MrMrON)�__doc__�lib2to3.fixes.fix_importsrr�lib2to3.fixer_utilrrrrr	r
rrCr\rLrOr�rMrK�<module>r�s�����=�<�<�<�<�<�<�<�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�"�C�C�C�D� �?�?�?�@�
 �+�,�.�/�"�'�'�'�
(� ���-�/�
����B�	����'�(�+�A�.�/�/�/�.�.�.�.}M�}M�}M�}M�}M�
�}M�}M�}M�}M�}MrM

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.opt-1.pyc File 170 B 0644
__init__.cpython-311.opt-2.pyc File 170 B 0644
__init__.cpython-311.pyc File 170 B 0644
fix_apply.cpython-311.opt-1.pyc File 2.76 KB 0644
fix_apply.cpython-311.opt-2.pyc File 2.67 KB 0644
fix_apply.cpython-311.pyc File 2.77 KB 0644
fix_asserts.cpython-311.opt-1.pyc File 1.72 KB 0644
fix_asserts.cpython-311.opt-2.pyc File 1.65 KB 0644
fix_asserts.cpython-311.pyc File 1.72 KB 0644
fix_basestring.cpython-311.opt-1.pyc File 886 B 0644
fix_basestring.cpython-311.opt-2.pyc File 842 B 0644
fix_basestring.cpython-311.pyc File 886 B 0644
fix_buffer.cpython-311.opt-1.pyc File 1.08 KB 0644
fix_buffer.cpython-311.opt-2.pyc File 1.01 KB 0644
fix_buffer.cpython-311.pyc File 1.08 KB 0644
fix_dict.cpython-311.opt-1.pyc File 4.81 KB 0644
fix_dict.cpython-311.opt-2.pyc File 3.94 KB 0644
fix_dict.cpython-311.pyc File 4.93 KB 0644
fix_except.cpython-311.opt-1.pyc File 4.69 KB 0644
fix_except.cpython-311.opt-2.pyc File 4.25 KB 0644
fix_except.cpython-311.pyc File 4.69 KB 0644
fix_exec.cpython-311.opt-1.pyc File 1.78 KB 0644
fix_exec.cpython-311.opt-2.pyc File 1.62 KB 0644
fix_exec.cpython-311.pyc File 1.8 KB 0644
fix_execfile.cpython-311.opt-1.pyc File 3.12 KB 0644
fix_execfile.cpython-311.opt-2.pyc File 3 KB 0644
fix_execfile.cpython-311.pyc File 3.14 KB 0644
fix_exitfunc.cpython-311.opt-1.pyc File 3.86 KB 0644
fix_exitfunc.cpython-311.opt-2.pyc File 3.79 KB 0644
fix_exitfunc.cpython-311.pyc File 3.86 KB 0644
fix_filter.cpython-311.opt-1.pyc File 3.97 KB 0644
fix_filter.cpython-311.opt-2.pyc File 3.52 KB 0644
fix_filter.cpython-311.pyc File 3.97 KB 0644
fix_funcattrs.cpython-311.opt-1.pyc File 1.29 KB 0644
fix_funcattrs.cpython-311.opt-2.pyc File 1.23 KB 0644
fix_funcattrs.cpython-311.pyc File 1.29 KB 0644
fix_future.cpython-311.opt-1.pyc File 1023 B 0644
fix_future.cpython-311.opt-2.pyc File 919 B 0644
fix_future.cpython-311.pyc File 1023 B 0644
fix_getcwdu.cpython-311.opt-1.pyc File 1.06 KB 0644
fix_getcwdu.cpython-311.opt-2.pyc File 1016 B 0644
fix_getcwdu.cpython-311.pyc File 1.06 KB 0644
fix_has_key.cpython-311.opt-1.pyc File 4.36 KB 0644
fix_has_key.cpython-311.opt-2.pyc File 3.8 KB 0644
fix_has_key.cpython-311.pyc File 4.37 KB 0644
fix_idioms.cpython-311.opt-1.pyc File 5.83 KB 0644
fix_idioms.cpython-311.opt-2.pyc File 5.35 KB 0644
fix_idioms.cpython-311.pyc File 5.95 KB 0644
fix_import.cpython-311.opt-1.pyc File 4.7 KB 0644
fix_import.cpython-311.opt-2.pyc File 4.4 KB 0644
fix_import.cpython-311.pyc File 4.7 KB 0644
fix_imports.cpython-311.opt-1.pyc File 6.8 KB 0644
fix_imports.cpython-311.opt-2.pyc File 6.74 KB 0644
fix_imports.cpython-311.pyc File 6.8 KB 0644
fix_imports2.cpython-311.opt-1.pyc File 700 B 0644
fix_imports2.cpython-311.opt-2.pyc File 598 B 0644
fix_imports2.cpython-311.pyc File 700 B 0644
fix_input.cpython-311.opt-1.pyc File 1.38 KB 0644
fix_input.cpython-311.opt-2.pyc File 1.31 KB 0644
fix_input.cpython-311.pyc File 1.38 KB 0644
fix_intern.cpython-311.opt-1.pyc File 1.49 KB 0644
fix_intern.cpython-311.opt-2.pyc File 1.42 KB 0644
fix_intern.cpython-311.pyc File 1.49 KB 0644
fix_isinstance.cpython-311.opt-1.pyc File 2.44 KB 0644
fix_isinstance.cpython-311.opt-2.pyc File 2.13 KB 0644
fix_isinstance.cpython-311.pyc File 2.44 KB 0644
fix_itertools.cpython-311.opt-1.pyc File 2.1 KB 0644
fix_itertools.cpython-311.opt-2.pyc File 1.75 KB 0644
fix_itertools.cpython-311.pyc File 2.1 KB 0644
fix_itertools_imports.cpython-311.opt-1.pyc File 2.66 KB 0644
fix_itertools_imports.cpython-311.opt-2.pyc File 2.58 KB 0644
fix_itertools_imports.cpython-311.pyc File 2.73 KB 0644
fix_long.cpython-311.opt-1.pyc File 993 B 0644
fix_long.cpython-311.opt-2.pyc File 928 B 0644
fix_long.cpython-311.pyc File 993 B 0644
fix_map.cpython-311.opt-1.pyc File 4.73 KB 0644
fix_map.cpython-311.opt-2.pyc File 3.95 KB 0644
fix_map.cpython-311.pyc File 4.73 KB 0644
fix_metaclass.cpython-311.opt-1.pyc File 10.45 KB 0644
fix_metaclass.cpython-311.opt-2.pyc File 9.13 KB 0644
fix_metaclass.cpython-311.pyc File 10.52 KB 0644
fix_methodattrs.cpython-311.opt-1.pyc File 1.27 KB 0644
fix_methodattrs.cpython-311.opt-2.pyc File 1.19 KB 0644
fix_methodattrs.cpython-311.pyc File 1.27 KB 0644
fix_ne.cpython-311.opt-1.pyc File 1.11 KB 0644
fix_ne.cpython-311.opt-2.pyc File 1.06 KB 0644
fix_ne.cpython-311.pyc File 1.11 KB 0644
fix_next.cpython-311.opt-1.pyc File 5.1 KB 0644
fix_next.cpython-311.opt-2.pyc File 5.04 KB 0644
fix_next.cpython-311.pyc File 5.12 KB 0644
fix_nonzero.cpython-311.opt-1.pyc File 1.19 KB 0644
fix_nonzero.cpython-311.opt-2.pyc File 1.13 KB 0644
fix_nonzero.cpython-311.pyc File 1.19 KB 0644
fix_numliterals.cpython-311.opt-1.pyc File 1.59 KB 0644
fix_numliterals.cpython-311.opt-2.pyc File 1.53 KB 0644
fix_numliterals.cpython-311.pyc File 1.59 KB 0644
fix_operator.cpython-311.opt-1.pyc File 6.12 KB 0644
fix_operator.cpython-311.opt-2.pyc File 5.65 KB 0644
fix_operator.cpython-311.pyc File 6.12 KB 0644
fix_paren.cpython-311.opt-1.pyc File 1.75 KB 0644
fix_paren.cpython-311.opt-2.pyc File 1.62 KB 0644
fix_paren.cpython-311.pyc File 1.75 KB 0644
fix_print.cpython-311.opt-1.pyc File 3.88 KB 0644
fix_print.cpython-311.opt-2.pyc File 3.6 KB 0644
fix_print.cpython-311.pyc File 4.05 KB 0644
fix_raise.cpython-311.opt-1.pyc File 3.69 KB 0644
fix_raise.cpython-311.opt-2.pyc File 3.08 KB 0644
fix_raise.cpython-311.pyc File 3.69 KB 0644
fix_raw_input.cpython-311.opt-1.pyc File 1.06 KB 0644
fix_raw_input.cpython-311.opt-2.pyc File 1020 B 0644
fix_raw_input.cpython-311.pyc File 1.06 KB 0644
fix_reduce.cpython-311.opt-1.pyc File 1.32 KB 0644
fix_reduce.cpython-311.opt-2.pyc File 1.2 KB 0644
fix_reduce.cpython-311.pyc File 1.32 KB 0644
fix_reload.cpython-311.opt-1.pyc File 1.5 KB 0644
fix_reload.cpython-311.opt-2.pyc File 1.43 KB 0644
fix_reload.cpython-311.pyc File 1.5 KB 0644
fix_renames.cpython-311.opt-1.pyc File 3.29 KB 0644
fix_renames.cpython-311.opt-2.pyc File 3.21 KB 0644
fix_renames.cpython-311.pyc File 3.29 KB 0644
fix_repr.cpython-311.opt-1.pyc File 1.22 KB 0644
fix_repr.cpython-311.opt-2.pyc File 1.16 KB 0644
fix_repr.cpython-311.pyc File 1.22 KB 0644
fix_set_literal.cpython-311.opt-1.pyc File 2.7 KB 0644
fix_set_literal.cpython-311.opt-2.pyc File 2.63 KB 0644
fix_set_literal.cpython-311.pyc File 2.7 KB 0644
fix_standarderror.cpython-311.opt-1.pyc File 947 B 0644
fix_standarderror.cpython-311.opt-2.pyc File 894 B 0644
fix_standarderror.cpython-311.pyc File 947 B 0644
fix_sys_exc.cpython-311.opt-1.pyc File 2.2 KB 0644
fix_sys_exc.cpython-311.opt-2.pyc File 2.03 KB 0644
fix_sys_exc.cpython-311.pyc File 2.2 KB 0644
fix_throw.cpython-311.opt-1.pyc File 2.84 KB 0644
fix_throw.cpython-311.opt-2.pyc File 2.61 KB 0644
fix_throw.cpython-311.pyc File 2.84 KB 0644
fix_tuple_params.cpython-311.opt-1.pyc File 8.47 KB 0644
fix_tuple_params.cpython-311.opt-2.pyc File 8.14 KB 0644
fix_tuple_params.cpython-311.pyc File 8.47 KB 0644
fix_types.cpython-311.opt-1.pyc File 2.46 KB 0644
fix_types.cpython-311.opt-2.pyc File 2 KB 0644
fix_types.cpython-311.pyc File 2.46 KB 0644
fix_unicode.cpython-311.opt-1.pyc File 2.49 KB 0644
fix_unicode.cpython-311.opt-2.pyc File 2.31 KB 0644
fix_unicode.cpython-311.pyc File 2.49 KB 0644
fix_urllib.cpython-311.opt-1.pyc File 10.19 KB 0644
fix_urllib.cpython-311.opt-2.pyc File 9.67 KB 0644
fix_urllib.cpython-311.pyc File 10.19 KB 0644
fix_ws_comma.cpython-311.opt-1.pyc File 1.61 KB 0644
fix_ws_comma.cpython-311.opt-2.pyc File 1.43 KB 0644
fix_ws_comma.cpython-311.pyc File 1.61 KB 0644
fix_xrange.cpython-311.opt-1.pyc File 4.12 KB 0644
fix_xrange.cpython-311.opt-2.pyc File 4.06 KB 0644
fix_xrange.cpython-311.pyc File 4.12 KB 0644
fix_xreadlines.cpython-311.opt-1.pyc File 1.57 KB 0644
fix_xreadlines.cpython-311.opt-2.pyc File 1.45 KB 0644
fix_xreadlines.cpython-311.pyc File 1.57 KB 0644
fix_zip.cpython-311.opt-1.pyc File 2.31 KB 0644
fix_zip.cpython-311.opt-2.pyc File 1.99 KB 0644
fix_zip.cpython-311.pyc File 2.31 KB 0644