From 18fdb262733654d24eac5643f629a30be95de906 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Mon, 12 Aug 2013 17:08:58 -0700 Subject: [PATCH] Fix to if test --- IPython/html/services/notebooks/filenbmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/services/notebooks/filenbmanager.py b/IPython/html/services/notebooks/filenbmanager.py index c64cc5afa..9f93f9572 100644 --- a/IPython/html/services/notebooks/filenbmanager.py +++ b/IPython/html/services/notebooks/filenbmanager.py @@ -100,7 +100,7 @@ class FileNotebookManager(NotebookManager): full_path = self.get_path(notebook_name, notebook_path) if change == "name": new_path = self.get_path(data['name'], notebook_path) - if os.path.isfile(new_path) == False: + if not os.path.isfile(new_path): os.rename(full_path, self.get_path(data['name'], notebook_path)) notebook_name = data['name']