diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-09-14 19:32:27 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-09-14 19:32:27 -0700 |
commit | 4212164e91ba2f49583cf44ad623a29b36db8f77 (patch) | |
tree | 47aefe3c0162f03e0c823b43873356f69c1cd636 /python/gevent/core.py | |
parent | 6ca20ff7010f2bafc7fefcb8cad982be27a8aeae (diff) | |
download | yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.lz yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.xz yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.zip |
Windows: Use 32-bit distribution of python
Diffstat (limited to 'python/gevent/core.py')
-rw-r--r-- | python/gevent/core.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/python/gevent/core.py b/python/gevent/core.py index 8944f12..906e739 100644 --- a/python/gevent/core.py +++ b/python/gevent/core.py @@ -1,21 +1,19 @@ # Copyright (c) 2009-2015 Denis Bilenko and gevent contributors. See LICENSE for details. +""" +Deprecated; this does not reflect all the possible options +and its interface varies. + +.. versionchanged:: 1.3a2 + Deprecated. +""" from __future__ import absolute_import -import os +import sys +from gevent._config import config from gevent._util import copy_globals -try: - if os.environ.get('GEVENT_CORE_CFFI_ONLY'): - raise ImportError("Not attempting corecext") - - from gevent.libev import corecext as _core -except ImportError: - if os.environ.get('GEVENT_CORE_CEXT_ONLY'): - raise - - # CFFI/PyPy - from gevent.libev import corecffi as _core +_core = sys.modules[config.loop.__module__] copy_globals(_core, globals()) |