a
    ,º]Ý  ã                   @   sl   d Z ddlmZ ddlmZ ddlmZ ddlmZ e ¡  dZg d¢Z	dd	„ Z
d
d„ Zdd„ Zdd„ ZdS )z~
Backport of the Python 3.3 email package for Python-Future.

A package for parsing, handling, and generating email messages.
é    )Úunicode_literals)Údivision)Úabsolute_import)Úsurrogateescapez5.1.0)Ú
base64mimeÚcharsetÚencodersÚerrorsÚ
feedparserÚ	generatorÚheaderÚ	iteratorsÚmessageÚmessage_from_fileÚmessage_from_binary_fileÚmessage_from_stringÚmessage_from_bytesÚmimeÚparserÚ
quoprimimeÚutilsc                 O   s    ddl m} ||i |¤Ž | ¡S )zvParse a string into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    r   ©ÚParser)Úfuture.backports.email.parserr   Úparsestr)ÚsÚargsÚkwsr   © r   úp/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/backports/email/__init__.pyr   0   s    r   c                 O   s    ddl m} ||i |¤Ž | ¡S )z|Parse a bytes string into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    r   ©ÚBytesParser)r   r!   Ú
parsebytes)r   r   r   r!   r   r   r   r   8   s    r   c                 O   s    ddl m} ||i |¤Ž | ¡S )zŠRead a file and parse its contents into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    r   r   )r   r   Úparse)Úfpr   r   r   r   r   r   r   @   s    r   c                 O   s    ddl m} ||i |¤Ž | ¡S )z‘Read a binary file and parse its contents into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    r   r    )r   r!   r#   )r$   r   r   r!   r   r   r   r   H   s    r   N)Ú__doc__Ú
__future__r   r   r   Zfuture.utilsr   Zregister_surrogateescapeÚ__version__Ú__all__r   r   r   r   r   r   r   r   Ú<module>   s   