mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
-- note to self: wait until 'cvs commit' has finished before
you edit the file.
This commit is contained in:
parent
47ac12662a
commit
efd7b001d6
1 changed files with 2 additions and 3 deletions
|
|
@ -124,7 +124,7 @@ del exit
|
||||||
# encoding used by the default locale of this system. If the default
|
# encoding used by the default locale of this system. If the default
|
||||||
# encoding cannot be determined or is unknown, it defaults to 'ascii'.
|
# encoding cannot be determined or is unknown, it defaults to 'ascii'.
|
||||||
|
|
||||||
encoding = None # default
|
encoding = "ascii" # default
|
||||||
|
|
||||||
if 0:
|
if 0:
|
||||||
# Enable to support locale aware default string encodings.
|
# Enable to support locale aware default string encodings.
|
||||||
|
|
@ -138,8 +138,7 @@ if 0:
|
||||||
# Unicode to string conversion.
|
# Unicode to string conversion.
|
||||||
encoding = "undefined"
|
encoding = "undefined"
|
||||||
|
|
||||||
if not encoding:
|
sys.setdefaultencoding(encoding)
|
||||||
encoding = "ascii"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Run custom site specific code, if available.
|
# Run custom site specific code, if available.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue