[Mumps2Py:] [157] fix off by one error

[ Thread Index | Date Index | More lists.mumps2py.org/discuss Archives ]


Revision: 157
Author:   pgallot
Date:     2008-03-06 00:21:55 +0000 (Thu, 06 Mar 2008)

Log Message:
-----------
fix off by one error

Modified Paths:
--------------
    trunk/mumps2py/mumps2tok.py


Modified: trunk/mumps2py/mumps2tok.py
===================================================================
--- trunk/mumps2py/mumps2tok.py	2008-03-04 18:00:38 UTC (rev 156)
+++ trunk/mumps2py/mumps2tok.py	2008-03-06 00:21:55 UTC (rev 157)
@@ -823,7 +823,7 @@
         mterminated = MUMPS_RE_DICT["cmdEnd"]
         while not mterminated.match(line, pos):
             device = {}
-            expr = parse_expr(line, pos + 1, r"([ :,]|\s*$)")
+            expr = parse_expr(line, pos, r"([ :,]|\s*$)")
             device["Expr"] = expr
             pos = expr.end
             if not mterminated.match(line, pos) and line[pos] == ':':


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/