]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bootstrapping asdl -- it didn't work with Python 2.7.
authorGuido van Rossum <guido@dropbox.com>
Tue, 8 Jul 2014 23:22:48 +0000 (16:22 -0700)
committerGuido van Rossum <guido@dropbox.com>
Tue, 8 Jul 2014 23:22:48 +0000 (16:22 -0700)
Parser/asdl.py

index 0c4e61f395080a14d43870b97d1ce7c44e88b662..4618416c57ae314ab7bc2fdda033e423db957c9f 100644 (file)
@@ -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 = {}