
    >wg.                     L    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
y)z=
Exports the following items:

 - unwrap()
 - APIException()
    )unicode_literalsdivisionabsolute_importprint_functionNc                       e Zd ZdZy)APIExceptionzI
    An exception indicating an API has been removed from asn1crypto
    N)__name__
__module____qualname____doc__     I/var/www/horilla/myenv/lib/python3.12/site-packages/asn1crypto/_errors.pyr   r      s     	r   r   c                     t        j                  |       }|j                  d      dk7  rt        j                  dd|      }|r||z  }|j                         }|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      sT    $ __V$F {{4B:CH&\\^FMr   )r   
__future__r   r   r   r   r   r   	Exceptionr   r   r   r   r   <module>r       s*    S R 	 	9 	r   