Your IP : 3.21.12.41
U
e5d� � @ sV d dl mZ ddlmZmZmZmZ d dlmZm Z m
Z
dd� ZG dd� dej�Z
d S )
� )�
fixer_base� )�dirname�join�exists�sep)�
FromImport�syms�tokenc c s� | g}|r�|� � }|jtjkr(|jV q|jtjkrNd�dd� |jD ��V q|jtj krl|�
|jd � q|jtjkr�|�|jd d d� � qt
d��qd S )N� c S s g | ]
}|j �qS � )�value)�.0Zchr r �0/usr/lib64/python3.8/lib2to3/fixes/fix_import.py�
<listcomp> s z$traverse_imports.<locals>.<listcomp>r ���zunknown node type)�pop�typer
�NAMEr
r Zdotted_namer �childrenZdotted_as_name�appendZdotted_as_names�extend�AssertionError)�namesZpending�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"