Thanks to visit codestin.com Credit goes to github.com
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 2a2940e commit 5fa247dCopy full SHA for 5fa247d
1 file changed
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