Mercurial > genshi > genshi-test
comparison scripts/ast_generator.py @ 867:efc03d0719f3
Add unit tests for correct handling of with statements and yield expressions in the AST code generator.
author | cmlenz |
---|---|
date | Fri, 13 Nov 2009 22:31:04 +0000 |
parents | 4376010bb97e |
children |
comparison
equal
deleted
inserted
replaced
866:6148ec774d7a | 867:efc03d0719f3 |
---|---|
32 if not written: | 32 if not written: |
33 print("\tpass") | 33 print("\tpass") |
34 done.add(cls) | 34 done.add(cls) |
35 | 35 |
36 print('# Generated automatically, please do not edit') | 36 print('# Generated automatically, please do not edit') |
37 print('# Generator can be found in Genshi SVN, scripts/ast-generator.py') | 37 print('# Generator can be found in Genshi SVN, scripts/ast_generator.py') |
38 print('') | 38 print('') |
39 print('__version__ = %s' % _ast.__version__) | 39 print('__version__ = %s' % _ast.__version__) |
40 print('') | 40 print('') |
41 | 41 |
42 for name in dir(_ast): | 42 for name in dir(_ast): |