B
    ½ÞZ¶
  ã               @   s4   d Z daG dd„ deƒZdd„ Zdd„ Zdd	„ ZdS )
é   Nc               @   s,   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	S )
Ú_IndentedCodeWriterc             C   s   d| _ || _d S )Né    )ÚlevelÚoutput)Úselfr   © r   ú:lib/python3.7/site-packages/PyQt5/uic/Compiler/indenter.pyÚ__init__.   s    z_IndentedCodeWriter.__init__c             C   s   |  j d7  _ d S )Né   )r   )r   r   r   r   Úindent2   s    z_IndentedCodeWriter.indentc             C   s   |  j d8  _ d S )Nr
   )r   )r   r   r   r   Údedent5   s    z_IndentedCodeWriter.dedentc             C   sV   |  ¡ rFtdkr&dt }| d|¡}nd}| j d|| j |f ¡ n| j d¡ d S )Nr   ú ú	z%s%s
Ú
)ÚstripÚindentwidthÚreplacer   Úwriter   )r   Úliner   r   r   r   r   8   s    z_IndentedCodeWriter.writeN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r   r   r   -   s   r   c             C   s   t | ƒad S )N)r   Ú	_indenter)r   r   r   r   ÚcreateCodeIndenterE   s    r   c               C   s   t S )N)r   r   r   r   r   ÚgetIndenterI   s    r   c             C   s   t  | ¡ d S )N)r   r   )Ústringr   r   r   Ú
write_codeL   s    r   )r   r   Úobjectr   r   r   r   r   r   r   r   Ú<module>)   s
   