summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/wrapper_base.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-10-08 06:37:50 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-10-08 06:37:50 +0000
commitcc7fd3d7d62f4bc6ee17456d282475781204f98e (patch)
tree6e5b33dc34ef7296c2fb91141310f6db44eb67a8 /numpy/f2py/lib/wrapper_base.py
parentfd52a61390598af319a4e67366972590cfeeaf98 (diff)
downloadnumpy-cc7fd3d7d62f4bc6ee17456d282475781204f98e.tar.gz
F2PY G3: added support and tests for character*(*) types.
Diffstat (limited to 'numpy/f2py/lib/wrapper_base.py')
-rw-r--r--numpy/f2py/lib/wrapper_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/f2py/lib/wrapper_base.py b/numpy/f2py/lib/wrapper_base.py
index cd7a3a8b0..f290c2f86 100644
--- a/numpy/f2py/lib/wrapper_base.py
+++ b/numpy/f2py/lib/wrapper_base.py
@@ -109,7 +109,9 @@ class WrapperBase:
def apply_templates(self, child):
for n in self.list_names:
l = getattr(self,n + '_list')
- l.append(child.apply_attributes(getattr(child, n+'_template','')))
+ c = child.apply_attributes(getattr(child, n+'_template',''))
+ if c:
+ l.append(c)
return
class WrapperCPPMacro(WrapperBase):