404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.14.255.181: ~ $
3


 \� �@s�dZddlmZmZddlmZmZmZmZm	Z	m
Z
mZdddddd	d
ddgfd
dddddddddddddddgfddgfgdd	dd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5gfdd6d7gfgd8�Zed9j
ed:d;�d<d=�ZGd>d?�d?e�Zd@S)Az�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.requestZ	URLopenerZFancyURLopenerZurlretrieveZ
_urlopenerZurlopenZ
urlcleanupZpathname2urlZurl2pathnamezurllib.parseZquoteZ
quote_plusZunquoteZunquote_plusZ	urlencodeZ	splitattrZ	splithostZ
splitnportZsplitpasswdZ	splitportZ
splitqueryZsplittagZ	splittypeZ	splituserZ
splitvaluezurllib.errorZContentTooShortErrorZinstall_openerZbuild_openerZRequestZOpenerDirectorZBaseHandlerZHTTPDefaultErrorHandlerZHTTPRedirectHandlerZHTTPCookieProcessorZProxyHandlerZHTTPPasswordMgrZHTTPPasswordMgrWithDefaultRealmZAbstractBasicAuthHandlerZHTTPBasicAuthHandlerZProxyBasicAuthHandlerZAbstractDigestAuthHandlerZHTTPDigestAuthHandlerZProxyDigestAuthHandlerZHTTPHandlerZHTTPSHandlerZFileHandlerZ
FTPHandlerZCacheFTPHandlerZUnknownHandlerZURLErrorZ	HTTPError)�urllib�urllib2rr�ccs~t�}xrtj�D]f\}}x\|D]T}|\}}t|�}d||fVd|||fVd|Vd|Vd||fVqWqWdS)Nz�import_name< 'import' (module=%r
                                  | dotted_as_names< any* module=%r any* >) >
                  z�import_from< 'from' mod_member=%r 'import'
                       ( member=%s | import_as_name< member=%s '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 > >
                  zKpower< bare_with_attr=%r trailer< '.' member=%s > any* >
                  )�set�MAPPING�itemsr)ZbareZ
old_moduleZchanges�changeZ
new_module�members�r�0/usr/lib64/python3.6/lib2to3/fixes/fix_urllib.py�
build_pattern0s


rc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�	FixUrllibcCsdjt��S)N�|)�joinr)�selfrrrrIszFixUrllib.build_patterncCsz|jd�}|j}g}x6t|jdd�D] }|jt|d|d�t�g�q(W|jtt|jdd|d��|j|�dS)z�Transform for the basic import case. Replaces the old
           import name with a comma separated list of its
           replacements.
        �moduleNr
r)�prefix���r)	�getrr�value�extendrr�append�replace)r�node�resultsZ
import_mod�pref�names�namerrr�transform_importLs
  zFixUrllib.transform_importcCs>|jd�}|j}|jd�}|r�t|t�r0|d}d}x*t|jD]}|j|dkr@|d}Pq@W|rx|jt||d��n|j|d��n�g}i}	|d}
x�|
D]�}|j	t
jkr�|jd	j}|jdj}n
|j}d}|d
kr�xPt|jD]B}||dkr�|d|	k�r|j
|d�|	j|dg�j
|�q�Wq�Wg}
t|�}d}dd
�}x�|D]�}|	|}g}x2|dd�D]"}|j|||��|j
t���qlW|j||d|��t||�}|�s�|jjj|��r�||_|
j
|�d}�qNW|
�r.g}x&|
dd�D]}|j|t�g��q�W|j
|
d�|j|�n|j|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
)rz!This is an invalid module elementr��,TcSsX|jtjkrHt|jdj|d�|jdj�|jdj�g}ttj|�gSt|j|d�gS)Nr)rr
r*)�typer
�import_as_namer�childrenrZcloner	)r&rZkidsrrr�handle_name�sz/FixUrllib.transform_member.<locals>.handle_nameFzAll module elements are invalidrrrr)rr�
isinstance�listrrr!r�cannot_convertr,r
r-r.r �
setdefaultrrrr�parent�endswithr)rr"r#r(r$r)�new_namer�modulesZmod_dictrZas_name�member_nameZ	new_nodesZindentation�firstr/rZeltsr%Zelt�newZnodesZnew_noderrr�transform_member\sh







zFixUrllib.transform_membercCs�|jd�}|jd�}d}t|t�r*|d}x*t|jD]}|j|dkr6|d}Pq6W|rp|jt||jd��n|j|d�dS)z.Transform for calls to module members in code.�bare_with_attrr)Nrr
)rz!This is an invalid module element)	rr0r1rrr!rrr2)rr"r#Z
module_dotr)r6rrrr�
transform_dot�s


zFixUrllib.transform_dotcCsz|jd�r|j||�n^|jd�r0|j||�nF|jd�rH|j||�n.|jd�r`|j|d�n|jd�rv|j|d�dS)Nrr(r<Zmodule_starzCannot handle star imports.Z	module_asz#This module is now multiple modules)rr'r;r=r2)rr"r#rrr�	transform�s




zFixUrllib.transformN)�__name__�
__module__�__qualname__rr'r;r=r>rrrrrGs
LrN)�__doc__Zlib2to3.fixes.fix_importsrrZlib2to3.fixer_utilrrrrrr	r
rr rrrrrr�<module>s@$


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 129 B 0644
__init__.cpython-36.opt-2.pyc File 129 B 0644
__init__.cpython-36.pyc File 129 B 0644
fix_apply.cpython-36.opt-1.pyc File 1.61 KB 0644
fix_apply.cpython-36.opt-2.pyc File 1.52 KB 0644
fix_apply.cpython-36.pyc File 1.64 KB 0644
fix_asserts.cpython-36.opt-1.pyc File 1.22 KB 0644
fix_asserts.cpython-36.opt-2.pyc File 1.15 KB 0644
fix_asserts.cpython-36.pyc File 1.22 KB 0644
fix_basestring.cpython-36.opt-1.pyc File 642 B 0644
fix_basestring.cpython-36.opt-2.pyc File 597 B 0644
fix_basestring.cpython-36.pyc File 642 B 0644
fix_buffer.cpython-36.opt-1.pyc File 787 B 0644
fix_buffer.cpython-36.opt-2.pyc File 718 B 0644
fix_buffer.cpython-36.pyc File 787 B 0644
fix_dict.cpython-36.opt-1.pyc File 3.15 KB 0644
fix_dict.cpython-36.opt-2.pyc File 2.28 KB 0644
fix_dict.cpython-36.pyc File 3.23 KB 0644
fix_except.cpython-36.opt-1.pyc File 2.73 KB 0644
fix_except.cpython-36.opt-2.pyc File 2.3 KB 0644
fix_except.cpython-36.pyc File 2.73 KB 0644
fix_exec.cpython-36.opt-1.pyc File 1.08 KB 0644
fix_exec.cpython-36.opt-2.pyc File 936 B 0644
fix_exec.cpython-36.pyc File 1.1 KB 0644
fix_execfile.cpython-36.opt-1.pyc File 1.62 KB 0644
fix_execfile.cpython-36.opt-2.pyc File 1.49 KB 0644
fix_execfile.cpython-36.pyc File 1.64 KB 0644
fix_exitfunc.cpython-36.opt-1.pyc File 2.22 KB 0644
fix_exitfunc.cpython-36.opt-2.pyc File 2.15 KB 0644
fix_exitfunc.cpython-36.pyc File 2.22 KB 0644
fix_filter.cpython-36.opt-1.pyc File 2.29 KB 0644
fix_filter.cpython-36.opt-2.pyc File 1.84 KB 0644
fix_filter.cpython-36.pyc File 2.29 KB 0644
fix_funcattrs.cpython-36.opt-1.pyc File 953 B 0644
fix_funcattrs.cpython-36.opt-2.pyc File 885 B 0644
fix_funcattrs.cpython-36.pyc File 953 B 0644
fix_future.cpython-36.opt-1.pyc File 763 B 0644
fix_future.cpython-36.opt-2.pyc File 660 B 0644
fix_future.cpython-36.pyc File 763 B 0644
fix_getcwdu.cpython-36.opt-1.pyc File 767 B 0644
fix_getcwdu.cpython-36.opt-2.pyc File 701 B 0644
fix_getcwdu.cpython-36.pyc File 767 B 0644
fix_has_key.cpython-36.opt-1.pyc File 2.8 KB 0644
fix_has_key.cpython-36.opt-2.pyc File 2.25 KB 0644
fix_has_key.cpython-36.pyc File 2.83 KB 0644
fix_idioms.cpython-36.opt-1.pyc File 3.72 KB 0644
fix_idioms.cpython-36.opt-2.pyc File 3.23 KB 0644
fix_idioms.cpython-36.pyc File 3.79 KB 0644
fix_import.cpython-36.opt-1.pyc File 2.7 KB 0644
fix_import.cpython-36.opt-2.pyc File 2.4 KB 0644
fix_import.cpython-36.pyc File 2.7 KB 0644
fix_imports.cpython-36.opt-1.pyc File 4.23 KB 0644
fix_imports.cpython-36.opt-2.pyc File 4.16 KB 0644
fix_imports.cpython-36.pyc File 4.23 KB 0644
fix_imports2.cpython-36.opt-1.pyc File 527 B 0644
fix_imports2.cpython-36.opt-2.pyc File 426 B 0644
fix_imports2.cpython-36.pyc File 527 B 0644
fix_input.cpython-36.opt-1.pyc File 929 B 0644
fix_input.cpython-36.opt-2.pyc File 860 B 0644
fix_input.cpython-36.pyc File 929 B 0644
fix_intern.cpython-36.opt-1.pyc File 1.11 KB 0644
fix_intern.cpython-36.opt-2.pyc File 1.05 KB 0644
fix_intern.cpython-36.pyc File 1.11 KB 0644
fix_isinstance.cpython-36.opt-1.pyc File 1.5 KB 0644
fix_isinstance.cpython-36.opt-2.pyc File 1.19 KB 0644
fix_isinstance.cpython-36.pyc File 1.5 KB 0644
fix_itertools.cpython-36.opt-1.pyc File 1.5 KB 0644
fix_itertools.cpython-36.opt-2.pyc File 1.15 KB 0644
fix_itertools.cpython-36.pyc File 1.5 KB 0644
fix_itertools_imports.cpython-36.opt-1.pyc File 1.52 KB 0644
fix_itertools_imports.cpython-36.opt-2.pyc File 1.44 KB 0644
fix_itertools_imports.cpython-36.pyc File 1.55 KB 0644
fix_long.cpython-36.opt-1.pyc File 684 B 0644
fix_long.cpython-36.opt-2.pyc File 620 B 0644
fix_long.cpython-36.pyc File 684 B 0644
fix_map.cpython-36.opt-1.pyc File 3 KB 0644
fix_map.cpython-36.opt-2.pyc File 2.22 KB 0644
fix_map.cpython-36.pyc File 3 KB 0644
fix_metaclass.cpython-36.opt-1.pyc File 5.19 KB 0644
fix_metaclass.cpython-36.opt-2.pyc File 3.84 KB 0644
fix_metaclass.cpython-36.pyc File 5.23 KB 0644
fix_methodattrs.cpython-36.opt-1.pyc File 915 B 0644
fix_methodattrs.cpython-36.opt-2.pyc File 839 B 0644
fix_methodattrs.cpython-36.pyc File 915 B 0644
fix_ne.cpython-36.opt-1.pyc File 786 B 0644
fix_ne.cpython-36.opt-2.pyc File 741 B 0644
fix_ne.cpython-36.pyc File 786 B 0644
fix_next.cpython-36.opt-1.pyc File 2.94 KB 0644
fix_next.cpython-36.opt-2.pyc File 2.88 KB 0644
fix_next.cpython-36.pyc File 2.97 KB 0644
fix_nonzero.cpython-36.opt-1.pyc File 902 B 0644
fix_nonzero.cpython-36.opt-2.pyc File 843 B 0644
fix_nonzero.cpython-36.pyc File 902 B 0644
fix_numliterals.cpython-36.opt-1.pyc File 1008 B 0644
fix_numliterals.cpython-36.opt-2.pyc File 946 B 0644
fix_numliterals.cpython-36.pyc File 1008 B 0644
fix_operator.cpython-36.opt-1.pyc File 4.12 KB 0644
fix_operator.cpython-36.opt-2.pyc File 3.64 KB 0644
fix_operator.cpython-36.pyc File 4.12 KB 0644
fix_paren.cpython-36.opt-1.pyc File 1.34 KB 0644
fix_paren.cpython-36.opt-2.pyc File 1.21 KB 0644
fix_paren.cpython-36.pyc File 1.34 KB 0644
fix_print.cpython-36.opt-1.pyc File 2.18 KB 0644
fix_print.cpython-36.opt-2.pyc File 1.9 KB 0644
fix_print.cpython-36.pyc File 2.25 KB 0644
fix_raise.cpython-36.opt-1.pyc File 2.18 KB 0644
fix_raise.cpython-36.opt-2.pyc File 1.57 KB 0644
fix_raise.cpython-36.pyc File 2.18 KB 0644
fix_raw_input.cpython-36.opt-1.pyc File 774 B 0644
fix_raw_input.cpython-36.opt-2.pyc File 707 B 0644
fix_raw_input.cpython-36.pyc File 774 B 0644
fix_reduce.cpython-36.opt-1.pyc File 1.08 KB 0644
fix_reduce.cpython-36.opt-2.pyc File 979 B 0644
fix_reduce.cpython-36.pyc File 1.08 KB 0644
fix_reload.cpython-36.opt-1.pyc File 1.11 KB 0644
fix_reload.cpython-36.opt-2.pyc File 1.05 KB 0644
fix_reload.cpython-36.pyc File 1.11 KB 0644
fix_renames.cpython-36.opt-1.pyc File 1.93 KB 0644
fix_renames.cpython-36.opt-2.pyc File 1.85 KB 0644
fix_renames.cpython-36.pyc File 1.93 KB 0644
fix_repr.cpython-36.opt-1.pyc File 824 B 0644
fix_repr.cpython-36.opt-2.pyc File 760 B 0644
fix_repr.cpython-36.pyc File 824 B 0644
fix_set_literal.cpython-36.opt-1.pyc File 1.63 KB 0644
fix_set_literal.cpython-36.opt-2.pyc File 1.55 KB 0644
fix_set_literal.cpython-36.pyc File 1.63 KB 0644
fix_standarderror.cpython-36.opt-1.pyc File 699 B 0644
fix_standarderror.cpython-36.opt-2.pyc File 645 B 0644
fix_standarderror.cpython-36.pyc File 699 B 0644
fix_sys_exc.cpython-36.opt-1.pyc File 1.35 KB 0644
fix_sys_exc.cpython-36.opt-2.pyc File 1.18 KB 0644
fix_sys_exc.cpython-36.pyc File 1.35 KB 0644
fix_throw.cpython-36.opt-1.pyc File 1.74 KB 0644
fix_throw.cpython-36.opt-2.pyc File 1.51 KB 0644
fix_throw.cpython-36.pyc File 1.74 KB 0644
fix_tuple_params.cpython-36.opt-1.pyc File 4.47 KB 0644
fix_tuple_params.cpython-36.opt-2.pyc File 4.14 KB 0644
fix_tuple_params.cpython-36.pyc File 4.47 KB 0644
fix_types.cpython-36.opt-1.pyc File 1.77 KB 0644
fix_types.cpython-36.opt-2.pyc File 1.3 KB 0644
fix_types.cpython-36.pyc File 1.77 KB 0644
fix_unicode.cpython-36.opt-1.pyc File 1.49 KB 0644
fix_unicode.cpython-36.opt-2.pyc File 1.31 KB 0644
fix_unicode.cpython-36.pyc File 1.49 KB 0644
fix_urllib.cpython-36.opt-1.pyc File 5.83 KB 0644
fix_urllib.cpython-36.opt-2.pyc File 5.28 KB 0644
fix_urllib.cpython-36.pyc File 5.83 KB 0644
fix_ws_comma.cpython-36.opt-1.pyc File 1.08 KB 0644
fix_ws_comma.cpython-36.opt-2.pyc File 916 B 0644
fix_ws_comma.cpython-36.pyc File 1.08 KB 0644
fix_xrange.cpython-36.opt-1.pyc File 2.46 KB 0644
fix_xrange.cpython-36.opt-2.pyc File 2.4 KB 0644
fix_xrange.cpython-36.pyc File 2.46 KB 0644
fix_xreadlines.cpython-36.opt-1.pyc File 1.07 KB 0644
fix_xreadlines.cpython-36.opt-2.pyc File 967 B 0644
fix_xreadlines.cpython-36.pyc File 1.07 KB 0644
fix_zip.cpython-36.opt-1.pyc File 1.52 KB 0644
fix_zip.cpython-36.opt-2.pyc File 1.2 KB 0644
fix_zip.cpython-36.pyc File 1.52 KB 0644