summaryrefslogtreecommitdiffstats
path: root/Parser/asdl.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-02-28 18:30:36 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-02-28 18:30:36 (GMT)
commit710ab3b5f8d114b9be200af135c6327117b8c676 (patch)
tree0b4d5f3eeac98a29e67ba966f26654f5fdf4b066 /Parser/asdl.py
parent08533fdad62197f4724f029c33b88975733f4045 (diff)
downloadcpython-710ab3b5f8d114b9be200af135c6327117b8c676.zip
cpython-710ab3b5f8d114b9be200af135c6327117b8c676.tar.gz
cpython-710ab3b5f8d114b9be200af135c6327117b8c676.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 2128732..3a69308 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -38,7 +38,7 @@ class Id(Token):
def __str__(self):
return self.value
-
+
class String(Token):
def __init__(self, value, lineno):
self.type = 'String'
@@ -71,7 +71,7 @@ class ASDLScanner(spark.GenericScanner, object):
# XXX doesn't distinguish upper vs. lower, which is
# significant for ASDL.
self.rv.append(Id(s, self.lineno))
-
+
def t_string(self, s):
r'"[^"]*"'
self.rv.append(String(s, self.lineno))
@@ -123,7 +123,7 @@ class ASDLParser(spark.GenericParser, object):
raise ASDLSyntaxError(module.lineno,
msg="expected 'module', found %s" % module)
return Module(name, definitions, version)
-
+
def p_version(self, (version, V)):
"version ::= Id String"
if version.value != "version":