summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2014-07-08 23:22:48 (GMT)
committerGuido van Rossum <guido@dropbox.com>2014-07-08 23:22:48 (GMT)
commit416b516d46d91316b22c2651a47ad3d7613834a4 (patch)
treecbf1a09e58c622860406f7039fab8e2c20e24439 /Parser
parent667f545e0378dec6b66fc4a21976eb98695ba662 (diff)
downloadcpython-416b516d46d91316b22c2651a47ad3d7613834a4.zip
cpython-416b516d46d91316b22c2651a47ad3d7613834a4.tar.gz
cpython-416b516d46d91316b22c2651a47ad3d7613834a4.tar.bz2
Fix bootstrapping asdl -- it didn't work with Python 2.7.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/asdl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 0c4e61f..4618416 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -112,7 +112,7 @@ class Product(AST):
# interesting node.
# 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."""
def __init__(self):
self.cache = {}
@@ -137,7 +137,7 @@ class Check(VisitorBase):
Errors are printed and accumulated.
"""
def __init__(self):
- super().__init__()
+ super(Check, self).__init__()
self.cons = {}
self.errors = 0
self.types = {}