bpo-35213: Where appropriate, use 'macOS' in idlelib. (#10478)

This commit is contained in:
Terry Jan Reedy 2018-11-15 13:15:13 -05:00 committed by GitHub
parent 70f61b933f
commit b65413b497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 28 deletions

View file

@ -41,7 +41,7 @@
# these problems, falling back to ASCII
locale_encoding = locale.nl_langinfo(locale.CODESET)
if locale_encoding is None or locale_encoding == '':
# situation occurs on Mac OS X
# situation occurs on macOS
locale_encoding = 'ascii'
codecs.lookup(locale_encoding)
except (NameError, AttributeError, LookupError):
@ -51,7 +51,7 @@
try:
locale_encoding = locale.getdefaultlocale()[1]
if locale_encoding is None or locale_encoding == '':
# situation occurs on Mac OS X
# situation occurs on macOS
locale_encoding = 'ascii'
codecs.lookup(locale_encoding)
except (ValueError, LookupError):