summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 +0000
committerTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 +0000
commit536cf99536bce562cfcb44a856fac1c84b9de4c3 (patch)
tree80cf0f425cfc703b228aad716ed66cd4a5080c03 /Parser/asdl.py
parenttest_bug_1333982(): This one must fail under -O. (diff)
downloadcpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.gz
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.bz2
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.zip
Whitespace normalization.
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 0db4e3bc470..5b856dda529 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -142,7 +142,7 @@ class ASDLParser(spark.GenericParser, object):
def p_product(self, (_0, fields, _1)):
" product ::= ( fields ) "
# XXX can't I just construct things in the right order?
- fields.reverse()
+ fields.reverse()
return Product(fields)
def p_sum_0(self, (constructor,)):
@@ -164,7 +164,7 @@ class ASDLParser(spark.GenericParser, object):
def p_constructor_1(self, (id, _0, fields, _1)):
" constructor ::= Id ( fields ) "
# XXX can't I just construct things in the right order?
- fields.reverse()
+ fields.reverse()
return Constructor(id, fields)
def p_fields_0(self, (field,)):
@@ -355,7 +355,7 @@ def check(mod):
v.errors += 1
uses = ", ".join(v.types[t])
print "Undefined type %s, used in %s" % (t, uses)
-
+
return not v.errors
def parse(file):
@@ -380,7 +380,7 @@ if __name__ == "__main__":
else:
testdir = "tests"
files = glob.glob(testdir + "/*.asdl")
-
+
for file in files:
print file
mod = parse(file)