From e9402c036b3f95f3a5a50106440f5c85d8fe3264 2011-08-25 10:25:26 From: Satrajit Ghosh Date: 2011-08-25 10:25:26 Subject: [PATCH] fix: applied fernando's if simplification fix --- diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 759a277..5821481 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -263,9 +263,7 @@ class IPythonNotebookApp(BaseIPythonApplication): def start(self): ip = self.ip if self.ip else '[all ip addresses on your system]' - proto = 'http' - if self.certfile: - proto = 'https' + proto = 'https' if self.certfile else 'http' self.log.info("The IPython Notebook is running at: %s://%s:%i" % (proto, ip, self.port))