]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use the "st" versions of the "ast" calls in the parser module -- there is
authorFred Drake <fdrake@acm.org>
Tue, 17 Jul 2001 19:33:25 +0000 (19:33 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 17 Jul 2001 19:33:25 +0000 (19:33 +0000)
no reason to pretend the syntax trees we're dealing with are abstract.

Lib/test/test_parser.py

index 8955bf8dfabc8177a523b2f4096b7396624a200a..9e994750c916fb7a9f419e6fd8fd5a9258c82373 100644 (file)
@@ -13,7 +13,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
         st1 = f(s)
         t = st1.totuple()
         try:
-            st2 = parser.sequence2ast(t)
+            st2 = parser.sequence2st(t)
         except parser.ParserError:
             self.fail("could not roundtrip %r" % s)
 
@@ -140,7 +140,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
 class IllegalSyntaxTestCase(unittest.TestCase):
     def check_bad_tree(self, tree, label):
         try:
-            parser.sequence2ast(tree)
+            parser.sequence2st(tree)
         except parser.ParserError:
             pass
         else: