summaryrefslogtreecommitdiff
path: root/numpy/_import_tools.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-03-01 07:55:38 -0800
committerCharles Harris <charlesr.harris@gmail.com>2013-03-01 07:55:38 -0800
commit3c13c0a925276130d66be490eed4ae337712cce2 (patch)
tree204051e6c3f2ff670c95cfc734d017a9b400a2fa /numpy/_import_tools.py
parent02cfcb99bc976a0bfc39529999e2a0200fb9cc2a (diff)
parent0e4e5084e1e4a2fb369db5b4f43c500c3a9cbcd8 (diff)
downloadnumpy-3c13c0a925276130d66be490eed4ae337712cce2.tar.gz
Merge pull request #3056 from charris/2to3-filter
2to3: Apply `filter` fixes. Closes #3053.
Diffstat (limited to 'numpy/_import_tools.py')
-rw-r--r--numpy/_import_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py
index 93fdaf3a8..98e69adf7 100644
--- a/numpy/_import_tools.py
+++ b/numpy/_import_tools.py
@@ -207,7 +207,7 @@ class PackageLoader(object):
if symbols is None:
symbols = eval('dir(%s)' % (package_name),
frame.f_globals,frame.f_locals)
- symbols = filter(lambda s:not s.startswith('_'),symbols)
+ symbols = [s for s in symbols if not s.startswith('_')]
else:
symbols = [symbol]