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

Commit5ce516b

Browse files
committed
[pyrepl] Ensure optional platform-specific imports are optional
1 parentdae0375 commit5ce516b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎Lib/test/test_pyrepl/test_windows_console.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
importitertools
22
importsys
33
importunittest
4-
from_pyrepl.consoleimportEvent,Console
5-
from_pyrepl.windows_consoleimport (
6-
MOVE_LEFT,
7-
MOVE_RIGHT,
8-
MOVE_UP,
9-
MOVE_DOWN,
10-
ERASE_IN_LINE,
11-
)
4+
125
fromfunctoolsimportpartial
136
fromtypingimportIterable
14-
fromunittestimportTestCase,main
15-
fromunittest.mockimportMagicMock,call,patch,ANY
7+
fromunittestimportTestCase
8+
fromunittest.mockimportMagicMock,call
169

1710
from .supportimporthandle_all_events,code_to_events
1811

1912
try:
20-
from_pyrepl.consoleimportEvent
21-
from_pyrepl.windows_consoleimportWindowsConsole
13+
from_pyrepl.consoleimportEvent,Console
14+
from_pyrepl.windows_consoleimport (
15+
WindowsConsole,
16+
MOVE_LEFT,
17+
MOVE_RIGHT,
18+
MOVE_UP,
19+
MOVE_DOWN,
20+
ERASE_IN_LINE,
21+
)
2222
exceptImportError:
2323
pass
2424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp