summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-15 20:50:27 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-07-15 20:50:27 (GMT)
commitefd7b001d62f81d7e4d9d11960948f21b49e7ac0 (patch)
tree10af0bbf69b8c6f57594b4432fe2ae2f2e8b1ee7 /Lib
parent47ac12662a11174c18400cfdf08ad50f97e3d2cd (diff)
downloadcpython-efd7b001d62f81d7e4d9d11960948f21b49e7ac0.zip
cpython-efd7b001d62f81d7e4d9d11960948f21b49e7ac0.tar.gz
cpython-efd7b001d62f81d7e4d9d11960948f21b49e7ac0.tar.bz2
-- note to self: wait until 'cvs commit' has finished before
you edit the file.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/site.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 14d9b04..34be9ec 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -124,7 +124,7 @@ del exit
# encoding used by the default locale of this system. If the default
# encoding cannot be determined or is unknown, it defaults to 'ascii'.
-encoding = None # default
+encoding = "ascii" # default
if 0:
# Enable to support locale aware default string encodings.
@@ -138,8 +138,7 @@ if 0:
# Unicode to string conversion.
encoding = "undefined"
-if not encoding:
- encoding = "ascii"
+sys.setdefaultencoding(encoding)
#
# Run custom site specific code, if available.