o
    >e                     @   s>   d Z ddlmZmZmZmZ ddlZddlZdgZdd Z	dS )z]
Helper for formatting exception messages. Exports the following items:

 - pretty_message()
    )unicode_literalsdivisionabsolute_importprint_functionNpretty_messagec                 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output r   Q/var/www/html/humari/django-venv/lib/python3.10/site-packages/oscrypto/_errors.pyr      s   
)
__doc__
__future__r   r   r   r   r   r
   __all__r   r   r   r   r   <module>   s   