
     h.                     T    d Z ddlmZmZmZmZ ddlZddlZ G d de          Z	d Z
dS )z=
Exports the following items:

 - unwrap()
 - APIException()
    )unicode_literalsdivisionabsolute_importprint_functionNc                       e Zd ZdZdS )APIExceptionzI
    An exception indicating an API has been removed from asn1crypto
    N)__name__
__module____qualname____doc__     N/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/asn1crypto/_errors.pyr   r      s          	Dr   r   c                     t          j        |           }|                    d          dk    rt          j        dd|          }|r||z  }|                                }|S )a_  
    Takes a multi-line string and does the following:

     - dedents
     - converts newlines with text before and after into a single line
     - strips leading and trailing whitespace

    :param string:
        The string to format

    :param *params:
        Params to interpolate into the string

    :return:
        The formatted string
    
z(?<=\S)
(?=[^ 
	\d\*\-=]) )textwrapdedentfindresubstrip)stringparamsoutputs      r   unwrapr      sc    $ _V$$F {{4B:CHH !&\\^^FMr   )r   
__future__r   r   r   r   r   r   	Exceptionr   r   r   r   r   <module>r       s     S R R R R R R R R R R R 				 	 	 	 	 	9 	 	 	    r   