Show More
@@ -6,15 +6,12 b'' | |||
|
6 | 6 | |
|
7 | 7 | import atexit |
|
8 | 8 | import datetime |
|
9 | from pathlib import Path | |
|
10 | 9 | import re |
|
11 | 10 | import sqlite3 |
|
12 | 11 | import threading |
|
12 | from pathlib import Path | |
|
13 | 13 | |
|
14 | from traitlets.config.configurable import LoggingConfigurable | |
|
15 | 14 | from decorator import decorator |
|
16 | from IPython.utils.decorators import undoc | |
|
17 | from IPython.paths import locate_profile | |
|
18 | 15 | from traitlets import ( |
|
19 | 16 | Any, |
|
20 | 17 | Bool, |
@@ -22,12 +19,16 b' from traitlets import (' | |||
|
22 | 19 | Instance, |
|
23 | 20 | Integer, |
|
24 | 21 | List, |
|
22 | TraitError, | |
|
25 | 23 | Unicode, |
|
26 | 24 | Union, |
|
27 | TraitError, | |
|
28 | 25 | default, |
|
29 | 26 | observe, |
|
30 | 27 | ) |
|
28 | from traitlets.config.configurable import LoggingConfigurable | |
|
29 | ||
|
30 | from IPython.paths import locate_profile | |
|
31 | from IPython.utils.decorators import undoc | |
|
31 | 32 | |
|
32 | 33 | #----------------------------------------------------------------------------- |
|
33 | 34 | # Classes and functions |
@@ -557,9 +558,11 b' class HistoryManager(HistoryAccessor):' | |||
|
557 | 558 | try: |
|
558 | 559 | self.save_thread.start() |
|
559 | 560 | except RuntimeError: |
|
560 | self.log.error("Failed to start history saving thread. History will not be saved.", | |
|
561 | exc_info=True) | |
|
562 | self.hist_file = ':memory:' | |
|
561 | self.log.error( | |
|
562 | "Failed to start history saving thread. History will not be saved.", | |
|
563 | exc_info=True, | |
|
564 | ) | |
|
565 | self.hist_file = ":memory:" | |
|
563 | 566 | |
|
564 | 567 | def _get_hist_file_name(self, profile=None): |
|
565 | 568 | """Get default history file name based on the Shell's profile. |
General Comments 0
You need to be logged in to leave comments.
Login now