B
    ÐH/\d  ã               @   sˆ   d Z ddlmZ ddlmZ ddddgZyddlmZ W n ek
rV   e d¡ Y nX [dd	l	m
Z
 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

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

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.

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   N)Ú__doc__Z
__future__r   Zgevent._configr   Ú__all__r   ÚImportErrorÚremoveZgevent._fileobjectposixr   Zgevent._fileobjectcommonr   r   Z
fileobjectr   © r   r   ú0lib/python3.7/site-packages/gevent/fileobject.pyÚ<module>#   s   