a
    Ø
þdÝ  ã                   @   s,   d Z ddlmZ dd„ ZG dd„ deƒZdS )zYAPF error objects.é    )Útokenizec                 C   sŠ   t | tƒr"d | j| j| j| j¡S t | tjƒrZd | j| j	d d | j	d d | j	d ¡S d | j	d d | j	d d | j	d d | j¡S )záConvert an exception into a standard format.

  The standard error message format is:

      <filename>:<lineno>:<column>: <msg>

  Arguments:
    e: An exception.

  Returns:
    A properly formatted error message string.
  z{}:{}:{}: {}é   r   é   )
Ú
isinstanceÚSyntaxErrorÚformatÚfilenameÚlinenoÚoffsetÚmsgr   Ú
TokenErrorÚargs)Úe© r   ú\/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/yapf/yapflib/errors.pyÚFormatErrorMsg   s    
 ÿr   c                   @   s   e Zd ZdZdS )Ú	YapfErrorz°Parent class for user errors or input errors.

  Exceptions of this type are handled by the command line tool
  and result in clear error messages, as opposed to backtraces.
  N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   (   s   r   N)r   Z yapf_third_party._ylib2to3.pgen2r   r   Ú	Exceptionr   r   r   r   r   Ú<module>   s   