Commit 416b516d authored by Guido van Rossum's avatar Guido van Rossum

Fix bootstrapping asdl -- it didn't work with Python 2.7.

parent 667f545e
...@@ -112,7 +112,7 @@ class Product(AST): ...@@ -112,7 +112,7 @@ class Product(AST):
# interesting node. # interesting node.
# We also define a Check visitor that makes sure the parsed ASDL is well-formed. # We also define a Check visitor that makes sure the parsed ASDL is well-formed.
class VisitorBase: class VisitorBase(object):
"""Generic tree visitor for ASTs.""" """Generic tree visitor for ASTs."""
def __init__(self): def __init__(self):
self.cache = {} self.cache = {}
...@@ -137,7 +137,7 @@ class Check(VisitorBase): ...@@ -137,7 +137,7 @@ class Check(VisitorBase):
Errors are printed and accumulated. Errors are printed and accumulated.
""" """
def __init__(self): def __init__(self):
super().__init__() super(Check, self).__init__()
self.cons = {} self.cons = {}
self.errors = 0 self.errors = 0
self.types = {} self.types = {}
......
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