Fix to if test

This commit is contained in:
Thomas Kluyver 2013-08-12 17:08:58 -07:00 committed by MinRK
parent 6154c5f626
commit 18fdb26273

View File

@ -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']