Skip to content

Commit c7244bc

Browse files
author
Guido van Rossum
committed
Fix bootstrapping asdl -- it didn't work with Python 2.7.
1 parent 0f51783 commit c7244bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Parser/asdl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __repr__(self):
112112
# interesting node.
113113
# We also define a Check visitor that makes sure the parsed ASDL is well-formed.
114114

115-
class VisitorBase:
115+
class VisitorBase(object):
116116
"""Generic tree visitor for ASTs."""
117117
def __init__(self):
118118
self.cache = {}
@@ -137,7 +137,7 @@ class Check(VisitorBase):
137137
Errors are printed and accumulated.
138138
"""
139139
def __init__(self):
140-
super().__init__()
140+
super(Check, self).__init__()
141141
self.cons = {}
142142
self.errors = 0
143143
self.types = {}

0 commit comments

Comments
 (0)