From 4afa36601f4d46807afd0c77b8d702e85845fab4 2012-05-22 05:58:02 From: MinRK Date: 2012-05-22 05:58:02 Subject: [PATCH] disable save-thread when using in-memory history db. --- diff --git a/IPython/core/history.py b/IPython/core/history.py index df981e9..6c51f73 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -403,8 +403,9 @@ class HistoryManager(HistoryAccessor): self.save_flag = threading.Event() self.db_input_cache_lock = threading.Lock() self.db_output_cache_lock = threading.Lock() - self.save_thread = HistorySavingThread(self) - self.save_thread.start() + if self.hist_file != ':memory:': + self.save_thread = HistorySavingThread(self) + self.save_thread.start() self.new_session()