浏览代码

Applied pep8.

Taddeus Kroes 14 年之前
父节点
当前提交
cc5d8f577e
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 2 2
      src/parser.py
  2. 0 1
      src/rules/numerics.py

+ 2 - 2
src/parser.py

@@ -51,8 +51,8 @@ class Parser(BisonParser):
     # ----------------------------------------------------------------
     # TODO: add a runtime check to verify that this token list match the list
     # of tokens of the lex script.
-    tokens =  ['NUMBER', 'IDENTIFIER', 'NEWLINE', 'QUIT', 'RAISE', 'GRAPH', \
-               'LPAREN', 'RPAREN'] + TOKEN_MAP.values()
+    tokens = ['NUMBER', 'IDENTIFIER', 'NEWLINE', 'QUIT', 'RAISE', 'GRAPH', \
+              'LPAREN', 'RPAREN'] + TOKEN_MAP.values()
 
     # ------------------------------
     # precedences

+ 0 - 1
src/rules/numerics.py

@@ -214,7 +214,6 @@ def multiply_numerics(root, args):
     """
     scope, c0, c1 = args
 
-
     # Replace the left node with the new expression
     substitution = Leaf(c0.value * c1.value).negate(c0.negated + c1.negated)
     scope.replace(c0, substitution)