summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-30 21:40:56 (GMT)
committerGitHub <noreply@github.com>2018-09-30 21:40:56 (GMT)
commitcb0bec37dd8279555bc01fa03a259eaf7dbb6d5d (patch)
tree38c9a33f8d25e7a30a93a3054fb79c6011818995 /Lib/idlelib
parent3cd5e8e83c9785d9f505138903c7a50dc964101e (diff)
downloadcpython-cb0bec37dd8279555bc01fa03a259eaf7dbb6d5d.zip
cpython-cb0bec37dd8279555bc01fa03a259eaf7dbb6d5d.tar.gz
cpython-cb0bec37dd8279555bc01fa03a259eaf7dbb6d5d.tar.bz2
bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)
Patch by Serhiy Storchaka (in PR GH-9642). (cherry picked from commit 5fa247d60d4f3f2b8c8ae8cb57363aca234344c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/iomenu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/iomenu.py b/Lib/idlelib/iomenu.py
index 63d107d..fcd8dcc 100644
--- a/Lib/idlelib/iomenu.py
+++ b/Lib/idlelib/iomenu.py
@@ -40,7 +40,7 @@ else:
# resulting codeset may be unknown to Python. We ignore all
# these problems, falling back to ASCII
locale_encoding = locale.nl_langinfo(locale.CODESET)
- if locale_encoding is None or locale_encoding is '':
+ if locale_encoding is None or locale_encoding == '':
# situation occurs on Mac OS X
locale_encoding = 'ascii'
codecs.lookup(locale_encoding)
@@ -50,7 +50,7 @@ else:
# bugs that can cause ValueError.
try:
locale_encoding = locale.getdefaultlocale()[1]
- if locale_encoding is None or locale_encoding is '':
+ if locale_encoding is None or locale_encoding == '':
# situation occurs on Mac OS X
locale_encoding = 'ascii'
codecs.lookup(locale_encoding)