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

Commitb140e5a

Browse files
IDLE: replace if statement with expression (GH-94228)
(cherry picked from commit91f9947)Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent251193e commitb140e5a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎Lib/idlelib/iomenu.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313
fromidlelib.utilimportpy_extensions
1414

1515
py_extensions=' '.join("*"+extforextinpy_extensions)
16-
1716
encoding='utf-8'
18-
ifsys.platform=='win32':
19-
errors='surrogatepass'
20-
else:
21-
errors='surrogateescape'
17+
errors='surrogatepass'ifsys.platform=='win32'else'surrogateescape'
18+
2219

23-
2420
classIOBinding:
2521
# One instance per editor Window so methods know which to save, close.
2622
# Open returns focus to self.editwin if aborted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp