[Mumps2Py:] [21] lint removal

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


Revision: 21
Author:   pgallot
Date:     2008-01-17 20:51:31 +0000 (Thu, 17 Jan 2008)

Log Message:
-----------
lint removal

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


Modified: trunk/mumps2py/tokens.py
===================================================================
--- trunk/mumps2py/tokens.py	2008-01-17 20:36:08 UTC (rev 20)
+++ trunk/mumps2py/tokens.py	2008-01-17 20:51:31 UTC (rev 21)
@@ -45,7 +45,7 @@
 OPPATMATCH, OPINDIRECT = 70, 71 # ?, @
 OPPATATOM, OPNAKEDREF = 72, 73
 
-#NOTE: INTRINSIC FUNCs and VARs have token values starting at 100,150 respectively.
+#NOTE: INTRINSIC FUNCs and VARs have values starting at 100,150 respectively.
 F_ASCII, F_CHAR, F_DATA, F_EXTRACT = 100, 101, 102, 103
 F_FIND, F_FNUMBER, F_GET, F_JUSTIFY = 104, 105, 106, 107
 F_LENGTH, F_NAME, F_NEXT, F_ORDER = 108, 109, 110, 111
@@ -136,7 +136,7 @@
 CMD_TOKEN_DICT = {"B":BREAKCMD, "BREAK":BREAKCMD,
                   "C":CLOSECMD, "CLOSE":CLOSECMD,
                   "D":DOCMD, "DO":DOCMD,
-                  "E":ELSECMD, "ELSE":ELSECMD, # note, no arguments to the else command, thus no parser.
+                  "E":ELSECMD, "ELSE":ELSECMD,
                   "F":FORCMD, "FOR":FORCMD,
                   "G":GOTOCMD, "GOTO":GOTOCMD,
                   "H":HANGCMD, "HANG":HANGCMD, "HALT":HANGCMD,
@@ -280,7 +280,7 @@
 
 def count_subtokens(count_dict, token):
     """counts the differen types of tokens and subtokens."""
-    token_key = TOKEN_REVERSE_DICT.get(token.toktype,token.toktype)
+    token_key = TOKEN_REVERSE_DICT.get(token.toktype, token.toktype)
 
     for var in [key for key in token.__dict__.keys() if key \
                 not in ('start', 'end', 'toktype', 'lineno')]:


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