Make output_mimetype accessible from the class.

Traitlets are only accessible by instantiating the class. There's no
clear reason that this needs to be a traitlet, anyway.
This commit is contained in:
Thomas Kluyver 2013-12-09 12:34:01 -08:00
parent c2644a20be
commit 47e9aad022

View File

@ -29,5 +29,4 @@ class PythonExporter(TemplateExporter):
'py', config=True,
help="Extension of the file that should be written to disk")
def _output_mimetype_default(self):
return 'text/x-python'
output_mimetype = 'text/x-python'