003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/zmq/backend
usr
/
local
/
lib
/
python3.8
/
site-packages
/
zmq
/
backend
/
📁
..
📄
__init__.py
(954 B)
📄
__init__.pyi
(2.02 KB)
📁
__pycache__
📁
cffi
📄
constants.pyi
(4.64 KB)
📁
cython
📄
select.py
(846 B)
Editing: __init__.py
"""Import basic exposure of libzmq C API as a backend""" # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import os import platform import sys from .select import public_api, select_backend if 'PYZMQ_BACKEND' in os.environ: backend = os.environ['PYZMQ_BACKEND'] if backend in ('cython', 'cffi'): backend = 'zmq.backend.%s' % backend _ns = select_backend(backend) else: # default to cython, fallback to cffi # (reverse on PyPy) if platform.python_implementation() == 'PyPy': first, second = ('zmq.backend.cffi', 'zmq.backend.cython') else: first, second = ('zmq.backend.cython', 'zmq.backend.cffi') try: _ns = select_backend(first) except Exception as original_error: try: _ns = select_backend(second) except ImportError: raise original_error from None globals().update(_ns) __all__ = public_api
Upload File
Create Folder