diff options
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r-- | Parser/asdl.py | 6 |
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 |