Re: [pypy-svn] r17217 - pypy/dist/pypy/interpreter/astcompiler

Please make sure you modify astgen.py at the same time. ast.py is generated by astgen.py which is a modified version of the original CPython generator. On Mon, 2005-09-05 at 10:30 +0200, pedronis@codespeak.net wrote:
Author: pedronis Date: Mon Sep 5 10:30:22 2005 New Revision: 17217
Modified: pypy/dist/pypy/interpreter/astcompiler/ast.py Log: some getChildNodes were still returning tuples
Modified: pypy/dist/pypy/interpreter/astcompiler/ast.py ============================================================================== --- pypy/dist/pypy/interpreter/astcompiler/ast.py (original) +++ pypy/dist/pypy/interpreter/astcompiler/ast.py Mon Sep 5 10:30:22 2005 @@ -332,7 +332,7 @@ return ()
def getChildNodes(self): - return () + return []
def __repr__(self): return "Break()" @@ -449,7 +449,7 @@ return ()
def getChildNodes(self): - return () + return []
def __repr__(self): return "Continue()" @@ -538,7 +538,7 @@ return ()
def getChildNodes(self): - return () + return []
def __repr__(self): return "Ellipsis()" @@ -1107,7 +1107,7 @@ return ()
def getChildNodes(self): - return () + return []
def __repr__(self): return "NoneConst()" @@ -1176,7 +1176,7 @@ return ()
def getChildNodes(self): - return () + return []
def __repr__(self): return "Pass()" _______________________________________________ pypy-svn mailing list pypy-svn@codespeak.net http://codespeak.net/mailman/listinfo/pypy-svn
participants (1)
-
Ludovic Aubry