Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e7ebe4 commit e3c66c0Copy full SHA for e3c66c0
1 file changed
IPython/core/history.py
@@ -703,7 +703,8 @@ def __init__(
703
self.hist_file = ":memory:"
704
else:
705
self.using_thread = True
706
- os.register_at_fork(before=self._stop_thread)
+ if hasattr(os, "register_at_fork"):
707
+ os.register_at_fork(before=self._stop_thread)
708
self._instances.add(self)
709
assert len(HistoryManager._instances) <= HistoryManager._max_inst, (
710
len(HistoryManager._instances),
0 commit comments