]> granicus.if.org Git - python/commitdiff
Alias non-terminals introduced for backwards compatibility.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 27 Feb 2006 16:03:39 +0000 (16:03 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 27 Feb 2006 16:03:39 +0000 (16:03 +0000)
Lib/compiler/transformer.py

index 924dcc7de50811e50e1f0eb8d10982cec9347afb..65a69d46e83bb1ae92e8da3d4ccbea2a644dcabd 100644 (file)
@@ -278,6 +278,7 @@ class Transformer:
         code = self.com_node(nodelist[-1])
 
         return Lambda(names, defaults, flags, code, lineno=nodelist[1][2])
+    old_lambdef = lambdef
 
     def classdef(self, nodelist):
         # classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
@@ -572,6 +573,8 @@ class Transformer:
         if len(nodelist) == 1 and nodelist[0][0] == symbol.lambdef:
             return self.lambdef(nodelist[0])
         return self.com_binary(Or, nodelist)
+    or_test = test
+    old_test = test
 
     def and_test(self, nodelist):
         # not_test ('and' not_test)*