
    Bwg                     <    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 Z	y)z]
Helper for formatting exception messages. Exports the following items:

 - pretty_message()
    )unicode_literalsdivisionabsolute_importprint_functionNpretty_messagec                     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      G/var/www/horilla/myenv/lib/python3.12/site-packages/oscrypto/_errors.pyr   r      sT    $ __V$F {{4B:CH&\\^FM    )
__doc__
__future__r   r   r   r   r   r   __all__r    r   r   <module>r      s*    S R 	  
r   