[Numpy-svn] r3257 - trunk/numpy/f2py/lib

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Oct 5 08:35:11 CDT 2006


Author: pearu
Date: 2006-10-05 08:35:06 -0500 (Thu, 05 Oct 2006)
New Revision: 3257

Modified:
   trunk/numpy/f2py/lib/main.py
   trunk/numpy/f2py/lib/py_wrap_type.py
   trunk/numpy/f2py/lib/wrapper_base.py
Log:
Fixed typos.

Modified: trunk/numpy/f2py/lib/main.py
===================================================================
--- trunk/numpy/f2py/lib/main.py	2006-10-05 11:45:28 UTC (rev 3256)
+++ trunk/numpy/f2py/lib/main.py	2006-10-05 13:35:06 UTC (rev 3257)
@@ -173,7 +173,7 @@
     """
     Build wrappers to Fortran 90 modules and external subprograms.
     """
-    modulename = get_option_value(sys_argv,'-m','untitled','unknown')
+    modulename = get_option_value(sys_argv,'-m','untitled','unspecified')
 
     build_dir = get_option_value('--build-dir','.',None)
     if build_dir is None:

Modified: trunk/numpy/f2py/lib/py_wrap_type.py
===================================================================
--- trunk/numpy/f2py/lib/py_wrap_type.py	2006-10-05 11:45:28 UTC (rev 3256)
+++ trunk/numpy/f2py/lib/py_wrap_type.py	2006-10-05 13:35:06 UTC (rev 3257)
@@ -299,7 +299,7 @@
         if isinstance(typedecl.parent, Module):
             self.use_stmt_list.append('use %s' % (typedecl.parent.name))
 
-        for n in parent.list_names:
-            l = getattr(parent,n + '_list')
-            l.append(self.apply_attributes(getattr(self, n+'_template','')))
+        parent.apply_templates(self)
+
+
         return

Modified: trunk/numpy/f2py/lib/wrapper_base.py
===================================================================
--- trunk/numpy/f2py/lib/wrapper_base.py	2006-10-05 11:45:28 UTC (rev 3256)
+++ trunk/numpy/f2py/lib/wrapper_base.py	2006-10-05 13:35:06 UTC (rev 3257)
@@ -104,8 +104,8 @@
         return template % d
 
     def apply_templates(self, child):
-        for n in parent.list_names:
-            l = getattr(parent,n + '_list')
+        for n in self.list_names:
+            l = getattr(self,n + '_list')
             l.append(child.apply_attributes(getattr(child, n+'_template','')))
         return
 



More information about the Numpy-svn mailing list