aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/fileobject.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-09-06 16:31:13 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-09-06 16:31:13 -0700
commit3d57e14df7ba5f14a634295caf3b2e60da50bfe2 (patch)
tree4903bcb79a49ad714a1a9129765b9545405c9978 /python/gevent/fileobject.py
parentac32b24b2a011292b704a3f27e8fd08a7ae9424b (diff)
downloadyt-local-3d57e14df7ba5f14a634295caf3b2e60da50bfe2.tar.lz
yt-local-3d57e14df7ba5f14a634295caf3b2e60da50bfe2.tar.xz
yt-local-3d57e14df7ba5f14a634295caf3b2e60da50bfe2.zip
Remove windows python distribution from repo and add requirements.txt
Diffstat (limited to 'python/gevent/fileobject.py')
-rw-r--r--python/gevent/fileobject.py61
1 files changed, 0 insertions, 61 deletions
diff --git a/python/gevent/fileobject.py b/python/gevent/fileobject.py
deleted file mode 100644
index 598f882..0000000
--- a/python/gevent/fileobject.py
+++ /dev/null
@@ -1,61 +0,0 @@
-"""
-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
-=======
-"""
-from __future__ import absolute_import
-
-from gevent._config import config
-
-__all__ = [
- 'FileObjectPosix',
- 'FileObjectThread',
- 'FileObjectBlock',
- 'FileObject',
-]
-
-try:
- from fcntl import fcntl
-except ImportError:
- __all__.remove("FileObjectPosix")
-else:
- del fcntl
- from gevent._fileobjectposix import FileObjectPosix
-
-from gevent._fileobjectcommon import FileObjectThread
-from gevent._fileobjectcommon import FileObjectBlock
-
-
-# None of the possible objects can live in this module because
-# we would get an import cycle and the config couldn't be set from code.
-FileObject = config.fileobject