
    ?d                     0    d Z ddlmZ d Z G d de      Zy)zYAPF error objects.    )tokenizec                     t        | t              r<dj                  | j                  | j                  | j
                  | j                        S t        | t        j                        rKdj                  | j                  | j                  d   d   | j                  d   d   | j                  d         S dj                  | j                  d   d   | j                  d   d   | j                  d   d   | j                        S )zConvert 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)es    5/usr/lib/python3/dist-packages/yapf/yapflib/errors.pyFormatErrorMsgr      s     ;  QXXqxxGG8&&'  QVVAYq\166!9Q<!", ,			qvvay|QVVAYq\166!9Q<	OO    c                       e Zd ZdZy)	YapfErrorzParent 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   (   s    
 r   r   N)r   lib2to3.pgen2r   r   	Exceptionr   r   r   r   <module>r      s     "P*	 r   