commit | 09cad08d754e5d458d79d26ff61fccfeff39a059 | [log] [tgz] |
---|---|---|
author | Marc-André Lemburg <mal@egenix.com> | Mon Sep 18 11:06:00 2000 +0000 |
committer | Marc-André Lemburg <mal@egenix.com> | Mon Sep 18 11:06:00 2000 +0000 |
tree | a7383c0f58fd80a15b093944cb46cafc35a96759 | |
parent | 0b7b4b8a229532bb7f634aedf0db81adfeb2ae18 [diff] |
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)").