##// END OF EJS Templates
Names reduced, too redundent.
Names reduced, too redundent.

File last commit:

r10609:815de40a
r10609:815de40a
Show More
python.py
34 lines | 1.2 KiB | text/x-python | PythonLexer
"""TODO: Docstring
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
# local import
import exporter
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class PythonExporter(exporter.Exporter):
def __init__(self, preprocessors=None, jinja_filters=None, config=None, armor=False, **kw):
#Call base class constructor.
super(exporter.Exporter, self).__init__(preprocessors, jinja_filters, config, **kw)
#Set defaults
self.file_extension = "py"
if armor:
self.template_file = "python-armor"
else:
self.template_file = "python"