[Checkins] SVN: Sandbox/malthe/chameleon.core/ Removed warning about utf-8 as a recommend default encoding. There is no apparent speed improvement anymore.
Hanno Schlichting
plone at hannosch.info
Fri Nov 28 11:30:56 EST 2008
Log message for revision 93427:
Removed warning about utf-8 as a recommend default encoding. There is no apparent speed improvement anymore.
Changed:
U Sandbox/malthe/chameleon.core/CHANGES.txt
U Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py
-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-28 16:28:07 UTC (rev 93426)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-28 16:30:56 UTC (rev 93427)
@@ -4,6 +4,9 @@
HEAD
~~~~
+- Removed warning about utf-8 as a recommend default encoding. There is no
+ apparent speed improvement anymore. [hannosch]
+
- Use ``sourcecodegen`` package to generate Python-code from AST; this
is done to avoid generating code using the ``compiler.pycodegen``
module, which has serious issues. Interestingly, this approach cuts
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py 2008-11-28 16:28:07 UTC (rev 93426)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py 2008-11-28 16:30:56 UTC (rev 93427)
@@ -4,7 +4,6 @@
import sys
import pprint
import config
-import logging
import interfaces
import htmlentitydefs
import re, string
@@ -19,11 +18,6 @@
unicode_required_flag = False
except UnicodeEncodeError:
unicode_required_flag = True
- log = logging.getLogger('Chameleon')
- log.info("Default system encoding is set to '%s'; "
- "the template engine will perform better if "
- "an encoding that coerces gracefully to "
- "unicode is used ('utf-8' recommended)." % sys.getdefaultencoding())
def coerces_gracefully(encoding):
if encoding != sys.getdefaultencoding() and unicode_required_flag:
More information about the Checkins
mailing list