summaryrefslogtreecommitdiff
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-05 03:49:09 +0000
committerTim Peters <tim.peters@gmail.com>2002-11-05 03:49:09 +0000
commita326f47a13e0c9fac32067f093976e2210da09e5 (patch)
tree838e141683374d01dc01a7e83c4f48d983cf4c78 /Lib/locale.py
parentbc5e3cc34fc9943aa0d04cabc8030a5984868676 (diff)
downloadcpython-git-a326f47a13e0c9fac32067f093976e2210da09e5.tar.gz
This stopped working on Windows, due to a reference to the non-existent
_locale.getdefaultlocale. Guessing a leading underscore was intended, but don't really understood this stuff (locale looks like Spanish for the opposite of global to me <wink>).
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 9ae981f9a1..8a26744ed0 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -397,7 +397,7 @@ if sys.platform in ('win32', 'darwin', 'mac'):
def getpreferredencoding(do_setlocale = True):
"""Return the charset that the user is likely using."""
import _locale
- return _locale.getdefaultlocale()[1]
+ return _locale._getdefaultlocale()[1]
else:
# On Unix, if CODESET is available, use that.
try: