summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-07 22:35:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-07 22:35:00 (GMT)
commitdea29d0c11b6f63e382710e26cca3dadd0defb28 (patch)
treefce9562b35cd28f700243cd3e40b416e3c087a86 /Parser
parentbd9508a7df8d31072c4503c530fb7fc0d01d4fae (diff)
downloadcpython-dea29d0c11b6f63e382710e26cca3dadd0defb28.zip
cpython-dea29d0c11b6f63e382710e26cca3dadd0defb28.tar.gz
cpython-dea29d0c11b6f63e382710e26cca3dadd0defb28.tar.bz2
always inherit from an appropiate base class
Diffstat (limited to 'Parser')
-rw-r--r--Parser/asdl.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 4b5676c..164ca6b 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -10,14 +10,12 @@ browser.
Changes for Python: Add support for module versions
"""
-#__metaclass__ = type
-
import os
import traceback
import spark
-class Token:
+class Token(object):
# spark seems to dispatch in the parser based on a token's
# type attribute
def __init__(self, type, lineno):
@@ -45,7 +43,7 @@ class String(Token):
self.value = value
self.lineno = lineno
-class ASDLSyntaxError:
+class ASDLSyntaxError(Exception):
def __init__(self, lineno, token=None, msg=None):
self.lineno = lineno