From b410e867bf9e666147beaa7935fee06e19d339e1 2013-08-08 16:28:24 From: Jonathan Frederic Date: 2013-08-08 16:28:24 Subject: [PATCH] Revert "Simplify" This reverts commit fdac8f30fd825e3f359e7cdfc6463829042699da. --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 912913a..72a4256 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -160,9 +160,8 @@ class NbConvertApp(BaseIPythonApplication): writer_factory = Type() def _writer_class_changed(self, name, old, new): - new = new.lower() - if new in self.writer_aliases: - new = self.writer_aliases[new] + if new.lower() in self.writer_aliases: + new = self.writer_aliases[new.lower()] self.writer_factory = import_item(new) # Post-processor specific variables @@ -178,9 +177,8 @@ class NbConvertApp(BaseIPythonApplication): post_processor_factory = Type() def _post_processor_class_changed(self, name, old, new): - new = new.lower() - if new in self.post_processor_aliases: - new = self.post_processor_aliases[new] + if new.lower() in self.post_processor_aliases: + new = self.post_processor_aliases[new.lower()] if new: self.post_processor_factory = import_item(new)