Kaydet (Commit) dea29d0c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

always inherit from an appropiate base class

üst bd9508a7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment