0x1949 Team - FAZEMRX - MANAGER
Edit File: fix_import.cpython-310.pyc
o ��bc� � @ 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}|rQ|� � }|jtjkr|jV n8|jtjkr(d�dd� |jD ��V n%|jtj kr7|� |jd � n|jtjkrI|�|jddd� � nt d��|sdS dS )zF Walks over all the names imported in a dotted_as_names node. � c S s g | ]}|j �qS � )�value)�.0�chr r �//usr/lib/python3.10/lib2to3/fixes/fix_import.py� <listcomp> s z$traverse_imports.<locals>.<listcomp>r N���zunknown node type)�pop�typer �NAMEr r �dotted_namer �children�dotted_as_name�append�dotted_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"