diff options
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): |