U
    e»{jg  ã                   @   s   d dl Z G dd„ de jƒZdS )é    Nc                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚCatchZeroByteWriterz&File handle to intercept 0-byte writesc                    s    t ƒ  |¡}|dkrtdƒ‚|S )Nr   z'This writer does not allow empty writes)ÚsuperÚwriteÚ
ValueError)ÚselfÚbufferÚnbytes©Ú	__class__© úV/var/www/html/bwave/python/venv/lib/python3.8/site-packages/astropy/io/tests/safeio.pyr   	   s    zCatchZeroByteWriter.write)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r	   r   r      s   r   )ÚioÚBufferedWriterr   r   r   r   r   Ú<module>   s   