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 2b8e6e5 commit 221d703Copy full SHA for 221d703
1 file changed
Lib/locale.py
@@ -618,9 +618,8 @@ def setlocale(category, locale=None):
618
except ImportError:
619
# When _locale.getencoding() is missing, locale.getencoding() uses the
620
# Python filesystem encoding.
621
- _encoding = sys.getfilesystemencoding()
622
def getencoding():
623
- return _encoding
+ return sys.getfilesystemencoding()
624
625
626
try:
0 commit comments