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 e8785ff commit 4aa8f8eCopy full SHA for 4aa8f8e
1 file changed
Lib/_bootlocale.py
@@ -13,7 +13,7 @@ def getpreferredencoding(do_setlocale=True):
13
else:
14
try:
15
_locale.CODESET
16
- except ImportError:
+ except AttributeError:
17
def getpreferredencoding(do_setlocale=True):
18
# This path for legacy systems needs the more complex
19
# getdefaultlocale() function, import the full locale module.
0 commit comments