We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd5e8e commit cb0bec3Copy full SHA for cb0bec3
Lib/idlelib/iomenu.py
@@ -40,7 +40,7 @@
40
# resulting codeset may be unknown to Python. We ignore all
41
# these problems, falling back to ASCII
42
locale_encoding = locale.nl_langinfo(locale.CODESET)
43
- if locale_encoding is None or locale_encoding is '':
+ if locale_encoding is None or locale_encoding == '':
44
# situation occurs on Mac OS X
45
locale_encoding = 'ascii'
46
codecs.lookup(locale_encoding)
@@ -50,7 +50,7 @@
50
# bugs that can cause ValueError.
51
try:
52
locale_encoding = locale.getdefaultlocale()[1]
53
54
55
56
0 commit comments