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