summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/zmq/backend/cffi/constants.py
blob: ee293e74455721e49059a8cc0fa699790dd58a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding: utf-8
"""zmq constants"""

from ._cffi import C, c_constant_names
from zmq.utils.constant_names import all_names

g = globals()
for cname in c_constant_names:
    if cname.startswith("ZMQ_"):
        name = cname[4:]
    else:
        name = cname
    g[name] = getattr(C, cname)

__all__ = all_names