2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-25 06:22:15 +00:00
Files
python/pyste/src/Pyste/IncludeExporter.py
Bruno da Silva de Oliveira 168476382a - incremental code and some fixes
[SVN r19499]
2003-08-09 21:18:12 +00:00

25 lines
767 B
Python

import os.path
from Exporter import Exporter
#==============================================================================
# IncludeExporter
#==============================================================================
class IncludeExporter(Exporter):
'''Writes an include declaration to the module. Useful to add extra code
for use in the Wrappers.
This class just reimplements the Parse method to do nothing: the
WriteInclude in Exporter already does the work for us.
'''
def __init__(self, info, parser_tail=None):
Exporter.__init__(self, info, parser_tail)
def Parse(self, parser):
pass
def Name(self):
return '__all__'
def Header(self):
return None # means "don't try to parse me!"