summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/zmq/backend/cffi/error.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/external_libs/zmq/backend/cffi/error.py')
-rw-r--r--scripts/external_libs/zmq/backend/cffi/error.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/external_libs/zmq/backend/cffi/error.py b/scripts/external_libs/zmq/backend/cffi/error.py
new file mode 100644
index 00000000..3bb64de0
--- /dev/null
+++ b/scripts/external_libs/zmq/backend/cffi/error.py
@@ -0,0 +1,13 @@
+"""zmq error functions"""
+
+# Copyright (C) PyZMQ Developers
+# Distributed under the terms of the Modified BSD License.
+
+from ._cffi import C, ffi
+
+def strerror(errno):
+ return ffi.string(C.zmq_strerror(errno))
+
+zmq_errno = C.zmq_errno
+
+__all__ = ['strerror', 'zmq_errno']