§
    ¿ÁiÌ  ã                   ó®   — d Z ddlmZ ddlmZ g d¢Z	 ddlmZ [ddlmZ n # e	$ r e 
                    d¦  «         Y nw xY wddlmZ dd	lmZ ej        Zd
S )aÔ  
Wrappers to make file-like objects cooperative.

.. class:: FileObject(fobj, mode='r', buffering=-1, closefd=True, encoding=None, errors=None, newline=None)

    The main entry point to the file-like gevent-compatible behaviour. It
    will be defined to be the best available implementation.

    All the parameters are as for :func:`io.open`.

    :param fobj: Usually a file descriptor of a socket. Can also be
        another object with a ``fileno()`` method, or an object that can
        be passed to ``io.open()`` (e.g., a file system path). If the object
        is not a socket, the results will vary based on the platform and the
        type of object being opened.

        All supported versions of Python allow :class:`os.PathLike` objects.

    .. versionchanged:: 1.5
       Accept str and ``PathLike`` objects for *fobj* on all versions of Python.
    .. versionchanged:: 1.5
       Add *encoding*, *errors* and *newline* arguments.
    .. versionchanged:: 1.5
       Accept *closefd* and *buffering* instead of *close* and *bufsize* arguments.
       The latter remain for backwards compatibility.

There are two main implementations of ``FileObject``. On all systems,
there is :class:`FileObjectThread` which uses the built-in native
threadpool to avoid blocking the entire interpreter. On UNIX systems
(those that support the :mod:`fcntl` module), there is also
:class:`FileObjectPosix` which uses native non-blocking semantics.

A third class, :class:`FileObjectBlock`, is simply a wrapper that
executes everything synchronously (and so is not gevent-compatible).
It is provided for testing and debugging purposes.

All classes have the same signature; some may accept extra keyword arguments.

Configuration
=============

You may change the default value for ``FileObject`` using the
``GEVENT_FILE`` environment variable. Set it to ``posix``, ``thread``,
or ``block`` to choose from :class:`FileObjectPosix`,
:class:`FileObjectThread` and :class:`FileObjectBlock`, respectively.
You may also set it to the fully qualified class name of another
object that implements the file interface to use one of your own
objects.

.. note::

    The environment variable must be set at the time this module
    is first imported.

Classes
=======
é    )Úabsolute_import)Úconfig)ÚFileObjectPosixÚFileObjectThreadÚFileObjectBlockÚ
FileObject)Úfcntl)r   r   )r   )r   N)Ú__doc__Ú
__future__r   Úgevent._configr   Ú__all__r	   Úgevent._fileobjectposixr   ÚImportErrorÚremoveÚgevent._fileobjectcommonr   r   Ú
fileobjectr   © ó    ú</usr/local/lib/python3.11/dist-packages/gevent/fileobject.pyú<module>r      sâ   ðð8ð 8ðr 'Ð &Ð &Ð &Ð &Ð &à !Ð !Ð !Ð !Ð !Ð !ðð ð €ð8ØÐÐÐÐÐð 	Ø7Ð7Ð7Ð7Ð7Ð7Ð7øð	 ð &ð &ð &Ø‡N‚NÐ$Ñ%Ô%Ð%Ð%Ð%ð&øøøð 6Ð 5Ð 5Ð 5Ð 5Ð 5Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4ð Ô€
€
€
s   ”" ¢?¾?