• Marc-André Lemburg's avatar
    sys.setdefaultencoding() should only be called in case the standard · 09cad08d
    Marc-André Lemburg yazdı
    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)").
    09cad08d
site.py 6.44 KB