From 884e48970e29f2b3d52c1999bb293d5607a4cf22 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 29 Nov 2012 07:19:06 -0800 Subject: [PATCH] fix graft() when using dir(module) --- edbob/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edbob/core.py b/edbob/core.py index 553ddab..70ebc79 100644 --- a/edbob/core.py +++ b/edbob/core.py @@ -112,7 +112,7 @@ def graft(target, source, names=None): if hasattr(source, '__all__'): names = source.__all__ else: - names = dir(source) + names = [x for x in dir(source) if not x.startswith('_')] elif isinstance(names, basestring): names = [names]