PATH:
usr
/
local
/
lib
/
python3.9
/
site-packages
/
libpasteurize
/
fixes
/
__pycache__
a ���i� � @ s~ d Z ddlmZ ddlmZ ddlmZmZmZm Z m Z mZmZm Z mZmZ ddlmZmZmZ dd� ZG dd � d ej�Zd S )zD Fixer for: (a,)* *b (,c)* [,] = s for (a,)* *b (,c)* [,] in d: ... � )� fixer_base)�count) �Assign�Comma�Call�Newline�Name�Number�token�syms�Node�Leaf)�indentation�suitify� commatizec C s� g }zt | �}t |�}W n" ty: t| �}t|�}Y n0 | dkr�ttjt|�ttjtt j d�ttjtt jd�t |�g�tt jd�g�g�}|�|� |�tt jddd�� ttjtt j ddd�t|�ttjtt j d�ttj| dkr�t |�ntdd �tt jd�|dk�r&ttjtt jd �t |�g�ntdd �g�tt jd�tt jd�g�g�}|�|� |dk�r�|�tt jddd�� ttjt|dd�ttjtt j d�ttjttjtt jd �t |�g�tt jd�g�tt jd�g�g�} |�| � ttj|�} | S )z� Accepts num_pre and num_post, which are counts of values before and after the starg (not including the starg) Returns a source fit for Assign() from fixer_util r �[�:�]�+� ��prefix� � �-)�unicode� NameError�strr r �powerr �trailerr r �LSQBZ subscript�COLONr �RSQB�append�PLUSZfactor�MINUSZ arith_expr)Znum_preZnum_post�LISTNAME�ITERNAME�children�pre�postZpre_partZ main_partZ post_part�source� r, �K/usr/local/lib/python3.9/site-packages/libpasteurize/fixes/fix_unpacking.py�assignment_source s&