£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
B
    A[D                 @   sd   d Z ddlmZmZmZmZ ddlmZ ddlm	Z	m
Z
 ddlmZ ddlmZ G dd deZd	S )
a  
Fixer for import statements, with a __future__ import line.

Based on lib2to3/fixes/fix_import.py, but extended slightly so it also
supports Cython modules.

If spam is being imported from the local directory, this import:
    from spam import eggs
becomes:
    from __future__ import absolute_import
    from .spam import eggs

and this import:
    import spam
becomes:
    from __future__ import absolute_import
    from . import spam
    )dirnamejoinexistssep)	FixImport)
FromImportsyms)traverse_imports)future_importc               @   s    e Zd ZdZdd Zdd ZdS )FixAbsoluteImport	   c             C   s   | j r
dS |d }|jtjkrdxt|ds6|jd }q W | |jrd|j |_|  t	d| nhd}d}x$t
|D ]}| |rd}qvd}qvW |r|r| |d	 dS td|g}|j|_t	d| |S dS )
z
        Copied from FixImport.transform(), but with this line added in
        any modules that had implicit relative imports changed:

            from __future__ import absolute_import"
        Nimpvaluer   .absolute_importFTz#absolute and local imports together)skiptyper   Zimport_fromhasattrchildrenprobably_a_local_importr   changedr
   r	   warningr   prefix)selfnoderesultsr   Z
have_localZhave_absolutemod_namenew r   V/opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/fix_absolute_import.py	transform   s0    

zFixAbsoluteImport.transformc             C   sx   | drdS |ddd }t| j}t||}ttt|dsHdS x*dtddd	d
dgD ]}t|| r\dS q\W dS )zq
        Like the corresponding method in the base class, but this also
        supports Cython modules.
        r   F   r   z__init__.pyz.pyz.pycz.soz.slz.pydz.pyxT)
startswithsplitr   filenamer   r   r   )r   Zimp_name	base_pathextr   r   r   r   I   s    


z)FixAbsoluteImport.probably_a_local_importN)__name__
__module____qualname__Z	run_orderr    r   r   r   r   r   r      s   *r   N)__doc__os.pathr   r   r   r   Zlib2to3.fixes.fix_importr   Zlib2to3.fixer_utilr   r   r	   Zlibfuturize.fixer_utilr
   r   r   r   r   r   <module>   s   