diff options
Diffstat (limited to 'numpy/f2py/lib/wrapper_base.py')
-rw-r--r-- | numpy/f2py/lib/wrapper_base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/f2py/lib/wrapper_base.py b/numpy/f2py/lib/wrapper_base.py index 234154142..7491d37f7 100644 --- a/numpy/f2py/lib/wrapper_base.py +++ b/numpy/f2py/lib/wrapper_base.py @@ -2,6 +2,7 @@ import os import sys import re + __all__ = ['WrapperBase','WrapperCPPMacro','WrapperCCode'] class WrapperBase: @@ -102,6 +103,12 @@ class WrapperBase: d[name] = str(attrs).replace('\n','\n'+tab) return template % d + def apply_templates(self, child): + for n in parent.list_names: + l = getattr(parent,n + '_list') + l.append(child.apply_attributes(getattr(child, n+'_template',''))) + return + class WrapperCPPMacro(WrapperBase): """ CPP macros |