Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite248821

Browse files
committed
Use is_main_thread from curtsies.input
1 parent1e80189 commite248821

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

‎bpython/curtsiesfrontend/coderunner.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
importgreenlet
1515
importlogging
1616
importsignal
17-
importthreading
18-
19-
logger=logging.getLogger(__name__)
2017

18+
fromcurtsies.inputimportis_main_thread
2119

22-
defis_main_thread():
23-
returnthreading.main_thread()==threading.current_thread()
20+
logger=logging.getLogger(__name__)
2421

2522

2623
classSigintHappened:

‎bpython/curtsiesfrontend/repl.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
__version__ascurtsies_version,
2929
)
3030
fromcurtsies.configfile_keynamesimportkeymapaskey_dispatch
31+
fromcurtsies.inputimportis_main_thread
3132

3233
frombpythonimport__version__
3334
frombpython.replimport (
@@ -45,7 +46,6 @@
4546
from .coderunnerimport (
4647
CodeRunner,
4748
FakeOutput,
48-
is_main_thread,
4949
)
5050
from .filewatchimportModuleChangedEventHandler
5151
from .interactionimportStatusBar

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp