File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 14
14
import greenlet
15
15
import logging
16
16
import signal
17
- import threading
18
-
19
- logger = logging .getLogger (__name__ )
20
17
18
+ from curtsies .input import is_main_thread
21
19
22
- def is_main_thread ():
23
- return threading .main_thread () == threading .current_thread ()
20
+ logger = logging .getLogger (__name__ )
24
21
25
22
26
23
class SigintHappened :
Original file line number Diff line number Diff line change 28
28
__version__ as curtsies_version ,
29
29
)
30
30
from curtsies .configfile_keynames import keymap as key_dispatch
31
+ from curtsies .input import is_main_thread
31
32
32
33
from bpython import __version__
33
34
from bpython .repl import (
45
46
from .coderunner import (
46
47
CodeRunner ,
47
48
FakeOutput ,
48
- is_main_thread ,
49
49
)
50
50
from .filewatch import ModuleChangedEventHandler
51
51
from .interaction import StatusBar
You can’t perform that action at this time.
0 commit comments