diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2018-09-30 17:17:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-30 17:17:17 -0400 |
commit | 5fa247d60d4f3f2b8c8ae8cb57363aca234344c2 (patch) | |
tree | 58246773bee2063b28ed6624d2a42842f87f1db7 /Lib/idlelib/iomenu.py | |
parent | 2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e (diff) | |
download | cpython-git-5fa247d60d4f3f2b8c8ae8cb57363aca234344c2.tar.gz |
bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)
Patch by Serhiy Storchaka (in PR #9642).
Diffstat (limited to 'Lib/idlelib/iomenu.py')
-rw-r--r-- | Lib/idlelib/iomenu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/iomenu.py b/Lib/idlelib/iomenu.py index 63d107dd90..fcd8dcc139 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) |