
    HR-eh                     4    d dl Z  G d de j                  ZdS )    Nc                   "     e Zd ZdZ fdZ xZS )CatchZeroByteWriterz'File handle to intercept 0-byte writes.c                 t    t                                          |          }|dk    rt          d          |S )Nr   z'This writer does not allow empty writes)superwrite
ValueError)selfbuffernbytes	__class__s      7lib/python3.11/site-packages/astropy/io/tests/safeio.pyr   zCatchZeroByteWriter.write	   s5    v&&Q;;FGGG    )__name__
__module____qualname____doc__r   __classcell__)r   s   @r   r   r      s>        11        r   r   )ioBufferedWriterr    r   r   <module>r      sG    
			    "+     r   