[Mumps2Py:] [10] lint removal |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 10
Author: pgallot
Date: 2008-01-17 18:47:28 +0000 (Thu, 17 Jan 2008)
Log Message:
-----------
lint removal
Modified Paths:
--------------
trunk/mumps2py/tok2python.py
trunk/mumps2py/tokens.py
Modified: trunk/mumps2py/tok2python.py
===================================================================
--- trunk/mumps2py/tok2python.py 2008-01-17 18:07:47 UTC (rev 9)
+++ trunk/mumps2py/tok2python.py 2008-01-17 18:47:28 UTC (rev 10)
@@ -176,14 +176,14 @@
if token.is_int():
return str(int(token.val, 10) + 1)
else:
- return translate_expr(translation,token) + "+1"
+ return translate_expr(translation, token) + "+1"
def translate_expr_sub_one(translation, token):
""" subtract one from the expression being translated """
if token.is_int():
return str(int(token.val, 10) - 1)
else:
- return translate_expr(translation,token) + "-1"
+ return translate_expr(translation, token) + "-1"
def translate_write(translation, token):
"""translate the Mumps Write Command to Python"""
Modified: trunk/mumps2py/tokens.py
===================================================================
--- trunk/mumps2py/tokens.py 2008-01-17 18:07:47 UTC (rev 9)
+++ trunk/mumps2py/tokens.py 2008-01-17 18:47:28 UTC (rev 10)
@@ -380,7 +380,7 @@
def is_int(self):
"""returns true if a numeric literal has no decimal"""
if (self.toktype == NUMLITERAL):
- return not re.search(r"[.]",self.val)
+ return not re.search(r"[.]", self.val)
else:
return False