summaryrefslogtreecommitdiffstats
path: root/Parser/asdl.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 (GMT)
commit536cf99536bce562cfcb44a856fac1c84b9de4c3 (patch)
tree80cf0f425cfc703b228aad716ed66cd4a5080c03 /Parser/asdl.py
parent83a8c393b06d24b3c6b252b7614c34110c369c43 (diff)
downloadcpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.zip
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.gz
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.bz2
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 0db4e3b..5b856dd 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)