##// END OF EJS Templates
Revert "Simplify"...
Jonathan Frederic -
Show More
@@ -160,9 +160,8 b' class NbConvertApp(BaseIPythonApplication):'
160 writer_factory = Type()
160 writer_factory = Type()
161
161
162 def _writer_class_changed(self, name, old, new):
162 def _writer_class_changed(self, name, old, new):
163 new = new.lower()
163 if new.lower() in self.writer_aliases:
164 if new in self.writer_aliases:
164 new = self.writer_aliases[new.lower()]
165 new = self.writer_aliases[new]
166 self.writer_factory = import_item(new)
165 self.writer_factory = import_item(new)
167
166
168 # Post-processor specific variables
167 # Post-processor specific variables
@@ -178,9 +177,8 b' class NbConvertApp(BaseIPythonApplication):'
178 post_processor_factory = Type()
177 post_processor_factory = Type()
179
178
180 def _post_processor_class_changed(self, name, old, new):
179 def _post_processor_class_changed(self, name, old, new):
181 new = new.lower()
180 if new.lower() in self.post_processor_aliases:
182 if new in self.post_processor_aliases:
181 new = self.post_processor_aliases[new.lower()]
183 new = self.post_processor_aliases[new]
184 if new:
182 if new:
185 self.post_processor_factory = import_item(new)
183 self.post_processor_factory = import_item(new)
186
184
General Comments 0
You need to be logged in to leave comments. Login now