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_import.cpython-37.pyc
B

µ5»a¸ã@sZdZddlmZddlmZmZmZmZddlm	Z	m
Z
mZdd„ZGdd	„d	ej
ƒZd
S)zÞFixer for import statements.
If spam is being imported from the local directory, this import:
    from spam import eggs
Becomes:
    from .spam import eggs

And this import:
    import spam
Becomes:
    from . import spam
é)Ú
fixer_baseé)ÚdirnameÚjoinÚexistsÚsep)Ú
FromImportÚsymsÚtokenccs¢|g}x–|rœ| ¡}|jtjkr*|jVq|jtjkrPd dd„|jDƒ¡Vq|jtj	krn| 
|jd¡q|jtjkr’| |jddd…¡qt
dƒ‚qWdS)zF
    Walks over all the names imported in a dotted_as_names node.
    ÚcSsg|]
}|j‘qS©)Úvalue)Ú.0Zchrrú./usr/lib/python3.7/lib2to3/fixes/fix_import.pyú
<listcomp>sz$traverse_imports.<locals>.<listcomp>rNéþÿÿÿzunknown node type)ÚpopÚtyper
ÚNAMEr
r	Zdotted_namerÚchildrenZdotted_as_nameÚappendZdotted_as_namesÚextendÚAssertionError)ÚnamesZpendingÚnoderrrÚtraverse_importss
rcs4eZdZdZdZ‡fdd„Zdd„Zdd„Z‡ZS)	Ú	FixImportTzj
    import_from< 'from' imp=any 'import' ['('] any [')'] >
    |
    import_name< 'import' imp=any >
    cs"tt|ƒ ||¡d|jk|_dS)NZabsolute_import)ÚsuperrÚ
start_treeZfuture_featuresÚskip)ÚselfZtreeÚname)Ú	__class__rrr/szFixImport.start_treecCs¼|jr
dS|d}|jtjkrZxt|dƒs6|jd}q W| |j¡r¸d|j|_| ¡n^d}d}x$t	|ƒD]}| |¡r€d}qld}qlW|r |rœ| 
|d¡dStd|gƒ}|j|_|SdS)NÚimpr
rÚ.FTz#absolute and local imports together)
rrr	Zimport_fromÚhasattrrÚprobably_a_local_importr
ZchangedrZwarningrÚprefix)r rZresultsr#Z
have_localZ
have_absoluteZmod_nameÚnewrrrÚ	transform3s,

zFixImport.transformcCsv| d¡rdS| dd¡d}t|jƒ}t||ƒ}ttt|ƒdƒƒsHdSx(dtddd	d
gD]}t||ƒrZdSqZWdS)Nr$Férz__init__.pyz.pyz.pycz.soz.slz.pydT)Ú
startswithÚsplitrÚfilenamerrr)r Zimp_nameÚ	base_pathZextrrrr&Us


z!FixImport.probably_a_local_import)	Ú__name__Ú
__module__Ú__qualname__Z
BM_compatibleZPATTERNrr)r&Ú
__classcell__rr)r"rr&s
"rN)Ú__doc__rrÚos.pathrrrrZ
fixer_utilrr	r
rZBaseFixrrrrrÚ<module>s