관리-도구
편집 파일: output.cpython-38.pyc
U ,�e� � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ ejjfdddd�d d �Z dejjdfddddd �dd�Z ddddd�dd�ZdS )� )�annotationsN)�Any)�IO�strz IO[bytes]�None)�s�stream�returnc C s |� | �� � |�� d S �N)�write�encode�flush)r r � r �?/opt/hc_python/lib/python3.8/site-packages/pre_commit/output.pyr s r zbytes | Nonez str | None)r r �logfile_namer c C sj t �� �X}|g}|r.|�t|d��}|�|� |D ](}| d k rH|�| � |�d� |�� q2W 5 Q R X d S )N�ab� )� contextlib� ExitStack� enter_context�open�appendr r )r r r Z exit_stackZoutput_streamsZ output_streamr r r �write_line_b s r r )r �kwargsr c K s t | d k r| �� n| f|� d S r )r r )r r r r r � write_line s r )N)� __future__r r �sys�typingr r �stdout�bufferr r r r r r r �<module> s �