From 8bac8cb891924e18ce44dbbe749a00f9aa375ea4 2010-12-26 01:01:31 From: Mani chandra Date: 2010-12-26 01:01:31 Subject: [PATCH] Periodic Autosave added in background thread closes gh-234 Signed-off-by: MinRK --- diff --git a/IPython/core/history.py b/IPython/core/history.py index bff1631..aaf8622 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -271,7 +271,7 @@ class HistorySaveThread(threading.Thread): if self.exit_now==True: break #printing for debug - print("Saving...") + #print("Saving...") self.IPython_object.save_history() def magic_history(self, parameter_s = ''): diff --git a/IPython/frontend/terminal/interactiveshell.py b/IPython/frontend/terminal/interactiveshell.py index 207323d..ef59c38 100644 --- a/IPython/frontend/terminal/interactiveshell.py +++ b/IPython/frontend/terminal/interactiveshell.py @@ -505,8 +505,6 @@ class TerminalInteractiveShell(InteractiveShell): self.shell.history_thread.cond.release() self.ask_exit() else: - self.shell.history_thread = HistorySaveThread(self.shell, 60, False) - self.shell.history_thread.start() self.ask_exit() #------------------------------------------------------------------------