HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/filemixin.cpython-37.pyc
B

b�N��@sGdd�de�ZdS)c@s:eZdZdZdd�Zdd�Zd
dd�Zd	d
�Zdd�ZdS)�	FileMixina�
    Used to provide auxiliary methods to objects simulating files.
    Objects must implement write, and read if they are input files.
    Also they should implement close.

    Other methods you may wish to override:
    * flush()
    * seek(offset[, whence])
    * tell()
    * truncate([size])

    Attributes you may wish to provide:
    * closed
    * encoding (you should also respect that in write())
    * mode
    * newlines (hard to support)
    * softspace
    cCsdS)N�)�selfrr�E/opt/alt/python37/lib/python3.7/site-packages/paste/util/filemixin.py�flushszFileMixin.flushcCs|��S)N)�readline)rrrr�nextszFileMixin.nextNcCsdg}xZ|�d�}|sd�|�S|�|�|rJ|dkrJt|�|krJd�|�S|dkrd�|�SqWdS)N����
)�read�join�append�len)r�size�outputrrrrrs



zFileMixin.readlinecCs|S)Nr)rrrr�
xreadlines.szFileMixin.xreadlinescCsx|D]}|�|�qWdS)N)�write)r�lines�linerrr�
writelines1s
zFileMixin.writelines)N)	�__name__�
__module__�__qualname__�__doc__rrrrrrrrrrs
rN)�objectrrrrr�<module>�