"""
Python exporter which exports Notebook code into a PY file.
"""
#-----------------------------------------------------------------------------
# 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
#-----------------------------------------------------------------------------

from IPython.utils.traitlets import Unicode

# local import
import exporter

#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------

class PythonExporter(exporter.Exporter):
    """
    Exports a Python code file.
    """
    
    file_extension = Unicode(
        'py', config=True, 
        help="Extension of the file that should be written to disk")

    template_file = Unicode(
            'python', config=True,
            help="Name of the template file to use")


    def __init__(self, transformers=None, filters=None, config=None, **kw):
        """
        Public constructor
    
        Parameters
        ----------
        transformers : list[of transformer]
            Custom transformers to apply to the notebook prior to engaging
            the Jinja template engine.  Any transformers specified here 
            will override existing transformers if a naming conflict
            occurs.
        filters : dict{of filter}
            Custom filters to make accessible to the Jinja templates.  Any
            filters specified here will override existing filters if a
            naming conflict occurs.
        config : config
            User configuration instance.
        """
        
        #Call base class constructor.
        super(PythonExporter, self).__init__(transformers, filters, config, **kw)

@@ -1172,867 +1172,4 @@
 e%22)%0A
-%0A%0A    def __init__(self, transformers=None, filters=None, config=None, **kw):%0A        %22%22%22%0A        Public constructor%0A    %0A        Parameters%0A        ----------%0A        transformers : list%5Bof transformer%5D%0A            Custom transformers to apply to the notebook prior to engaging%0A            the Jinja template engine.  Any transformers specified here %0A            will override existing transformers if a naming conflict%0A            occurs.%0A        filters : dict%7Bof filter%7D%0A            Custom filters to make accessible to the Jinja templates.  Any%0A            filters specified here will override existing filters if a%0A            naming conflict occurs.%0A        config : config%0A            User configuration instance.%0A        %22%22%22%0A        %0A        #Call base class constructor.%0A        super(PythonExporter, self).__init__(transformers, filters, config, **kw)%0A

fix config inheriting