]> granicus.if.org Git - python/commit
sys.setdefaultencoding() should only be called in case the standard
authorMarc-André Lemburg <mal@egenix.com>
Mon, 18 Sep 2000 11:06:00 +0000 (11:06 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Mon, 18 Sep 2000 11:06:00 +0000 (11:06 +0000)
commit09cad08d754e5d458d79d26ff61fccfeff39a059
treea7383c0f58fd80a15b093944cb46cafc35a96759
parent0b7b4b8a229532bb7f634aedf0db81adfeb2ae18
sys.setdefaultencoding() should only be called in case the standard
default encoding ("ascii") is changed. This safes quite a few cycles
during startup since the first call to .setdefaultencoding() will
initialize the codec registry and the encodings package.

See python-dev for a discussion (Subject: "[Python-Dev] [comp.lang.python] sys.setdefaultencoding (2.0b1)").
Lib/site.py