[Mumps2Py:] [173] fix from Thilo for an off-by-one error that left off the last routine in a file of routines . |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 173
Author: pgallot
Date: 2008-03-12 21:31:05 +0000 (Wed, 12 Mar 2008)
Log Message:
-----------
fix from Thilo for an off-by-one error that left off the last routine in a file of routines.
Modified Paths:
--------------
trunk/mumps2py/mumps_module.py
Modified: trunk/mumps2py/mumps_module.py
===================================================================
--- trunk/mumps2py/mumps_module.py 2008-03-12 21:29:10 UTC (rev 172)
+++ trunk/mumps2py/mumps_module.py 2008-03-12 21:31:05 UTC (rev 173)
@@ -115,6 +115,10 @@
oldmodname = tmp[0]
lastmodline = lineno
+ if oldmodname:
+ modules.append( MRoutine(inputfile, outputdir, oldmodname,
+ lastmodline + 1, lineno - 1))
+
fileinput.close()
return modules
@@ -153,7 +157,11 @@
lastmodline = lineno
last_line = line
-
+
+ if oldmodname:
+ modules.append( MRoutine(inputfile, outputdir, oldmodname,
+ lastmodline + 1, lineno - 1))
+
fileinput.close()
return modules