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