Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
3
\¸ ã @ sZ d Z ddlmZ ddlmZmZmZmZ ddlm Z m
Z
mZ dd„ ZG dd „ 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Útokenc c s¢ | g}x–|rœ|j ƒ }|jtjkr*|jV q|jtjkrPdjdd„ |jD ƒƒV q|jtj krn|j
|jd ƒ q|jtjkr’|j|jddd… ƒ qt
dƒ‚qW dS ) zF
Walks over all the names imported in a dotted_as_names node.
Ú c S s g | ]
}|j ‘qS © )Úvalue)Ú.0Zchr r ú0/usr/lib64/python3.6/lib2to3/fixes/fix_import.pyú
s z$traverse_imports..r Nr zunknown node typeéþÿÿÿ)ÚpopÚtyper
ÚNAMEr
r Zdotted_namer ÚchildrenZdotted_as_nameÚappendZdotted_as_namesÚextendÚAssertionError)ÚnamesÚpendingÚnoder r r Útraverse_imports s
r c s4 e Zd ZdZdZ‡ fdd„Zdd„ Zdd„ Z‡ ZS ) Ú FixImportTzj
import_from< 'from' imp=any 'import' ['('] any [')'] >
|
import_name< 'import' imp=any >
c s" t t| ƒj||ƒ d|jk| _d S )NZabsolute_import)Úsuperr Ú
start_treeZfuture_featuresÚskip)ÚselfZtreeÚname)Ú __class__r r r / s zFixImport.start_treec C s¼ | j r
d S |d }|jtjkrZxt|dƒs6|jd }q W | j|jƒr¸d|j |_|jƒ n^d}d}x$t |ƒD ]}| j|ƒr€d}qld}qlW |r |rœ| j
|dƒ d S td|gƒ}|j|_|S d S )NÚimpr
r Ú.FTz#absolute and local imports together)
r r r Zimport_fromÚhasattrr Úprobably_a_local_importr
Zchangedr Zwarningr Úprefix)r! r Zresultsr$ Z
have_localZ
have_absoluteZmod_nameÚnewr r r Ú transform3 s,
zFixImport.transformc C sv |j dƒrdS |jddƒd }t| jƒ}t||ƒ}ttt|ƒdƒƒsHdS x(dtddd d
gD ]}t|| ƒrZdS qZW dS )Nr% Fé r z__init__.pyz.pyz.pycz.soz.slz.pydT)Ú
startswithÚsplitr Úfilenamer r r )r! Zimp_nameÚ base_pathZextr r r r' U s
z!FixImport.probably_a_local_import) Ú__name__Ú
__module__Ú__qualname__Z
BM_compatibleZPATTERNr r* r' Ú
__classcell__r r )r# r r &