ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/iniparse/
Upload File :
Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/iniparse/utils.pyc

�
J��Kc@s8ddlZddlmZmZd�Zd�ZdS(i����N(t
LineContainert	EmptyLinecCs	t|tj�r|j}n|jj}d}x�|t|�kr�t||t�rst||�|d7}q3t||dt	�r�t||t	�r�||=q3|d7}q3W|r�t|dt	�r�|d=n|rt|dt	�r|j
t	��ndS(s�Clean up blank lines.

    This functions makes the configuration look clean and
    handwritten - consecutive empty lines and empty lines at
    the start of the file are removed, and one is guaranteed
    to be at the end of the file.
    iii����N(t
isinstancetcompattRawConfigParsertdatat_datatcontentstlenRttidy_sectionRtappend(tcfgtcontti((s2/usr/lib/python2.7/site-packages/iniparse/utils.pyttidys 	


cCs�|j}d}xT|t|�kret||dt�rXt||t�rX||=q|d7}qWt|�dkr�t|dt�r�|d=ndS(Ni(RRRR(tlcRR
((s2/usr/lib/python2.7/site-packages/iniparse/utils.pyR	#s	
%(RtiniRRRR	(((s2/usr/lib/python2.7/site-packages/iniparse/utils.pyt<module>s	

Zerion Mini Shell 1.0