Your IP : 216.73.216.213
�qV� � @ sP d Z d d l m Z m Z m Z m Z d d l Z d d l Z d d � Z d S)zU
Helper for formatting exception messages. Exports the following items:
- unwrap()
� )�unicode_literals�division�absolute_import�print_functionNc G sY t j | � } | j d � d k r9 t j d d | � } | rI | | } | 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�output� r �C/opt/alt/python35/lib/python3.5/site-packages/asn1crypto/_errors.py�unwrap s
r ) �__doc__�
__future__r r r r r
r
r r r r r �<module> s "