j n d Z ddlmZ ddlmZmZmZmZ ddlm Z m
Z
mZ d Z G d dej
Zd S )
zFixer 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 )dirnamejoinexistssep)
FromImportsymstokenc # K | g}|r| }|j t j k r
|j V n|j t
j k r'd d |j D V n~|j t
j k r!|
|j d nH|j t
j k r$| |j ddd nt d |dS dS )zF
Walks over all the names imported in a dotted_as_names node.
c g | ] }|j
S )value).0chs ?/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_import.py