U
    XKšfÓ  ã                   @   s    d dl mZ dd„ Zdd„ ZdS )é    ©Ú	force_strc                 C   s   | dkrdS t | ƒS )z6Force a value to text, render None as an empty string.NÚ r   )Úvalue© r   ús/home/adriano.carvalho/ftp/files/ProjetoGabarito/ifmuz/gabarito/venv/lib/python3.8/site-packages/bootstrap5/text.pyÚ
text_value   s    r   c                  O   s.   t | dd¡ƒ}tddd„ | D ƒƒ}| |¡S )zGConcatenate several values as a text string with an optional separator.Ú	separatorr   Nc                 S   s   g | ]}t |ƒ‘qS r   )r   )Ú.0Úvr   r   r   Ú
<listcomp>   s     ztext_concat.<locals>.<listcomp>)r   ÚgetÚfilterÚjoin)ÚargsÚkwargsr	   Úvaluesr   r   r   Útext_concat   s    r   N)Zdjango.utils.encodingr   r   r   r   r   r   r   Ú<module>   s   