a
    �Ï?eb  ã                   @   s   d Z ddlZG dd„ dƒZdS )z5Module to provide backward compatibility for plugins.é    Nc                   @   s@   e Zd ZU dZdZejeef ed< e	dd„ ƒZ
e	dd„ ƒZdS )	ÚBinaryFilesMixinz9Mixin class to open configuration files as a binary data.)ÚrbÚwbÚ_open_flagsc                 K   s   t || jd fi |¤ŽS )zkOpen ``filepath`` with read only mode.

        :param filepath: Path to file to open to read data
        r   ©Úopenr   ©ÚclsÚfilepathÚkwargs© r   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/anyconfig/backend/base/compat.pyÚropen   s    zBinaryFilesMixin.ropenc                 K   s   t || jd fi |¤ŽS )zkOpen ``filepath`` with write mode.

        :param filepath: Path to file to open to write data to
        é   r   r   r   r   r   Úwopen   s    zBinaryFilesMixin.wopenN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚtypingÚTupleÚstrÚ__annotations__Úclassmethodr   r   r   r   r   r   r   
   s   

r   )r   r   r   r   r   r   r   Ú<module>   s   