HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.7/lib2to3/fixes/__pycache__/fix_urllib.cpython-37.pyc
B

µ5»a¡ ã@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d9 
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ƒ}xrt ¡D]f\}}x\|D]T}|\}}t|ƒ}d||fVd|||fVd|Vd|Vd||fVqWqWdS)Nzimport_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ú./usr/lib/python3.7/lib2to3/fixes/fix_urllib.pyÚ
build_pattern0s


rc@s4eZdZdd„Zdd„Zdd„Zdd„Zd	d
„ZdS)Ú	FixUrllibcCsd tƒ¡S)Nú|)Újoinr)ÚselfrrrrIszFixUrllib.build_patterncCsz| d¡}|j}g}x6t|jdd…D] }| t|d|dtƒg¡q(W| tt|jdd|d¡| |¡dS)z‘Transform for the basic import case. Replaces the old
           import name with a comma separated list of its
           replacements.
        ÚmoduleNéÿÿÿÿr)Úprefix)	ÚgetrrÚvalueÚextendrrÚappendÚreplace)rÚnodeÚresultsZ
import_modÚprefÚnamesÚnamerrrÚtransform_importLs
  zFixUrllib.transform_importcCs<| d¡}|j}| d¡}|rˆt|tƒr0|d}d}x*t|jD]}|j|dkr@|d}Pq@W|rx| t||d¡n| |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|	kr| 
|d¡|	 |dg¡ 
|¡qæWqžWg}
t|ƒ}d}dd
„}x–|D]Ž}|	|}g}x2|dd…D]"}| |||ƒ¡| 
tƒ¡qlW| ||d|ƒ¡t||ƒ}|rÆ|jj |¡rÌ||_|
 
|¡d}qNW|
r,g}x&|
dd…D]}| |tƒg¡qøW| 
|
d¡| |¡n| |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|jd ¡|jd ¡g}ttj|ƒgSt|j|dgS)Nr)rr
r*)Útyper
Úimport_as_namerÚchildrenrZcloner	)r&rZkidsrrrÚhandle_nameŒsz/FixUrllib.transform_member.<locals>.handle_namerFzAll module elements are invalid)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€| d¡}| d¡}d}t|tƒr*|d}x*t|jD]}|j|dkr6|d}Pq6W|rp| t||jd¡n| |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| d¡r| ||¡n^| d¡r0| ||¡nF| d¡rH| ||¡n.| d¡r`| |d¡n| d¡rv| |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@$