From 297932c45d84746c0892a4d3fd8f063f25a33183 Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Fri, 7 Dec 2018 12:01:29 -0800 Subject: [PATCH] Add nanomsg.__all__ module variable --- nanomsg/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nanomsg/__init__.py b/nanomsg/__init__.py index ab584dc..e58acaa 100644 --- a/nanomsg/__init__.py +++ b/nanomsg/__init__.py @@ -6,6 +6,8 @@ from . import wrapper +__all__ = ['wrapper', 'NanoMsgError', 'NanoMsgAPIError', 'Device', 'Socket'] + try: buffer except NameError: @@ -18,6 +20,7 @@ if name.startswith('NN_'): name = name[3:] globals()[name] = value + __all__.append(name) if hasattr(wrapper, 'create_writable_buffer'):