From 9421b64fd04a9ffdcef9a1a51c103e7618757b7c Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 13 Mar 2018 04:04:24 -0700 Subject: [PATCH] update 43 --- lib/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/__init__.py b/lib/__init__.py index f733fb3..5b774f5 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -19,6 +19,5 @@ from .plotwav import * # this is similar to default behaviour of having no __all__ variable at all, # but ours ignores modules as well. this allows for `import sys` and such # without clobbering `from our_module import *`. -__all__ = [ - o for o in locals() - if type(o) != 'module' and not o.startswith('_')] +__all__ = [k for k, v in locals().items() + if not __import__('inspect').ismodule(v) and not k.startswith('_')]