Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
17
venv/Lib/site-packages/zmq/backend/cffi/error.py
Normal file
17
venv/Lib/site-packages/zmq/backend/cffi/error.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
"""zmq error functions"""
|
||||
|
||||
# Copyright (C) PyZMQ Developers
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
from ._cffi import C, ffi
|
||||
|
||||
def strerror(errno):
|
||||
s = ffi.string(C.zmq_strerror(errno))
|
||||
if not isinstance(s, str):
|
||||
# py3
|
||||
s = s.decode()
|
||||
return s
|
||||
|
||||
zmq_errno = C.zmq_errno
|
||||
|
||||
__all__ = ['strerror', 'zmq_errno']
|
Loading…
Add table
Add a link
Reference in a new issue