3
Xw^                 @   s    d dl jZG dd dejZdS )    Nc               @   s   e Zd Zdd Zdd ZdS )ParserErrorc             C   s   || _ || _|| _d S )N)errortokensdebug)selfr   r   r    r   ^/home/psgendb/BIRCHDEV/python/lib/python3.6/site-packages/uncompyle6/semantics/parser_error.py__init__   s    zParserError.__init__c             C   s\   dg}| j r(|jdd t| jD  n|jdd | jD  |jdt| jg dj|S )Nz!--- This code section failed: ---c             S   s    g | ]\}}|j |d  dqS )   )Z	token_num)format).0itr   r   r   
<listcomp>   s    z'ParserError.__str__.<locals>.<listcomp>c             S   s   g | ]}|j  qS r   )r   )r   r   r   r   r   r      s     
)r   extend	enumerater   strr   join)r   linesr   r   r   __str__   s    zParserError.__str__N)__name__
__module____qualname__r	   r   r   r   r   r   r      s   r   )Zuncompyle6.parserparserZpython_parserr   r   r   r   r   <module>   s   
