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

Commitcb0bec3

Browse files
bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)
Patch by Serhiy Storchaka (in PRGH-9642).(cherry picked from commit5fa247d)Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent3cd5e8e commitcb0bec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Lib/idlelib/iomenu.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# resulting codeset may be unknown to Python. We ignore all
4141
# these problems, falling back to ASCII
4242
locale_encoding=locale.nl_langinfo(locale.CODESET)
43-
iflocale_encodingisNoneorlocale_encodingis'':
43+
iflocale_encodingisNoneorlocale_encoding=='':
4444
# situation occurs on Mac OS X
4545
locale_encoding='ascii'
4646
codecs.lookup(locale_encoding)
@@ -50,7 +50,7 @@
5050
# bugs that can cause ValueError.
5151
try:
5252
locale_encoding=locale.getdefaultlocale()[1]
53-
iflocale_encodingisNoneorlocale_encodingis'':
53+
iflocale_encodingisNoneorlocale_encoding=='':
5454
# situation occurs on Mac OS X
5555
locale_encoding='ascii'
5656
codecs.lookup(locale_encoding)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp