File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1414import greenlet
1515import logging
1616import signal
17- import threading
18-
19- logger = logging .getLogger (__name__ )
2017
18+ from curtsies .input import is_main_thread
2119
22- def is_main_thread ():
23- return threading .main_thread () == threading .current_thread ()
20+ logger = logging .getLogger (__name__ )
2421
2522
2623class SigintHappened :
Original file line number Diff line number Diff line change 2828 __version__ as curtsies_version ,
2929)
3030from curtsies .configfile_keynames import keymap as key_dispatch
31+ from curtsies .input import is_main_thread
3132
3233from bpython import __version__
3334from bpython .repl import (
4546from .coderunner import (
4647 CodeRunner ,
4748 FakeOutput ,
48- is_main_thread ,
4949)
5050from .filewatch import ModuleChangedEventHandler
5151from .interaction import StatusBar
You can’t perform that action at this time.
0 commit comments