B
    è¹`v  ã               @   s.   e d ƒZe dƒZdd„ Zdd„ Zd
dd„Zd	S ))ÚtÚtrueÚyÚyesÚonÚ1)ÚfÚfalseÚnÚnoÚoffÚ0c             C   s2   | dkrdS t | tƒr| S t| ƒ ¡ } |  ¡ tkS )zÅReturn the boolean value ``True`` if the case-lowered value of string
    input ``s`` is a :term:`truthy string`. If ``s`` is already one of the
    boolean values ``True`` or ``False``, return it.NF)Ú
isinstanceÚboolÚstrÚstripÚlowerÚtruthy)Ús© r   úX/home/kop/projects/devel/pgwui/test_venv/lib/python3.7/site-packages/pyramid/settings.pyÚasbool   s    
r   c             C   s*   t | tƒr"td dd„ |  ¡ D ƒƒ} t| ƒS )Nc             S   s   g | ]}|  ¡ ‘qS r   )r   )Ú.0Úxr   r   r   ú
<listcomp>   s    z!aslist_cronly.<locals>.<listcomp>)r   r   ÚfilterÚ
splitlinesÚlist)Úvaluer   r   r   Úaslist_cronly   s    
r   Tc             C   sN   t | ƒ}|s|S g }x4|D ],} t| tƒr<|  ¡ } | | ¡ q| | ¡ qW |S )z¶Return a list, separating the input based on newlines.
    Also if ``flatten`` is ``True`` (the default), and if the line
    is a string, then the line will be split on spaces.
    )r   r   r   ÚsplitÚextendÚappend)r   ÚflattenÚvaluesÚresultr   r   r   Úaslist   s    

r%   N)T)Ú	frozensetr   Zfalseyr   r   r%   r   r   r   r   Ú<module>   s   