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

 - unwrap()
 - APIException()
    )unicode_literalsdivisionabsolute_importprint_functionNc                   @   s   e Zd ZdZdS )APIExceptionzI
    An exception indicating an API has been removed from asn1crypto
    N)__name__
__module____qualname____doc__ r   r   S/var/www/html/humari/django-venv/lib/python3.10/site-packages/asn1crypto/_errors.pyr      s    r   c                 G   s>   t | }|ddkrtdd|}|r|| }| }|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outputr   r   r   unwrap   s   
r   )r
   
__future__r   r   r   r   r   r   	Exceptionr   r   r   r   r   r   <module>   s   