From 7d0467df1c4e66ea1bba5d22a4fba4d4e0f3951c Mon Sep 17 00:00:00 2001 From: Satrajit Ghosh Date: Thu, 25 Aug 2011 12:25:26 +0200 Subject: [PATCH] fix: applied fernando's if simplification fix --- IPython/frontend/html/notebook/notebookapp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 759a27709..5821481bf 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))