diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-10-08 06:37:50 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-10-08 06:37:50 +0000 |
commit | cc7fd3d7d62f4bc6ee17456d282475781204f98e (patch) | |
tree | 6e5b33dc34ef7296c2fb91141310f6db44eb67a8 /numpy/f2py/lib/wrapper_base.py | |
parent | fd52a61390598af319a4e67366972590cfeeaf98 (diff) | |
download | numpy-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.py | 4 |
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): |