/usr/lib/python3.6/site-packages/iniparse/__pycache__
Edit: /usr/lib/python3.6/site-packages/iniparse/__pycache__/utils.cpython-36.pyc (1126B)
3
þCÌ]ú ã @ s0 d dl mZ d dlmZmZ dd„ Zdd„ ZdS )é )Úcompat)Ú
LineContainerÚ EmptyLinec C sÀ t | tjƒr| j} | jj}d}xd|t|ƒk r‚t || tƒrPt|| ƒ |d7 }q t ||d t ƒrxt || t ƒrx||= q |d7 }q W |rœt |d t ƒrœ|d= |r¼t |d t ƒ r¼|j
t ƒ ƒ dS )zñ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.
r é Néÿÿÿÿ)Ú
isinstancer ZRawConfigParserÚdataÚ_dataÚcontentsÚlenr Útidy_sectionr Úappend)ZcfgÚcontÚi© r ú/usr/lib/python3.6/utils.pyÚtidy s
r c C sp | j }d}x@|t|ƒk rJt||d tƒr@t|| tƒr@||= q|d7 }qW t|ƒdkrlt|d tƒrl|d= d S )Nr )r
r r r )Zlcr r r r r r # s r N)Ú r Zinir r r r r r r r Ú
s