summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-10 19:32:19 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-07-10 19:32:19 (GMT)
commit663809ed830ac84f9c6fe94ad7c2a3cc302d0680 (patch)
treed69ab811159a9bf906a5cfa9061c326719f25c73 /Lib/site.py
parentdde61644024185891e1c41d6f5de29f8780b1cff (diff)
downloadcpython-663809ed830ac84f9c6fe94ad7c2a3cc302d0680.zip
cpython-663809ed830ac84f9c6fe94ad7c2a3cc302d0680.tar.gz
cpython-663809ed830ac84f9c6fe94ad7c2a3cc302d0680.tar.bz2
-- removed get_default compatibility kludge
-- added a few extra comments to locale.py
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 70284e1..17f253a 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -126,7 +126,7 @@ del exit
#
def locale_aware_defaultencoding():
import locale
- code, encoding = locale.get_default()
+ code, encoding = locale.getdefaultlocale()
if encoding is None:
encoding = 'ascii'
try: