Re: [Cheetahtemplate-discuss] Cheetah and PEP255
Brought to you by:
rtyler,
tavis_rudd
From: Mike O. <ms...@oz...> - 2003-10-22 23:59:24
|
On Wed, Oct 22, 2003 at 10:10:39AM +0200, JZ wrote: > I get many "DeprecationWarning: Non-ASCII character" warnings from > compiled templates after I changed Python version from 2.x to 2.3.x. > > Cheetah compiler ignores PEP 255 introduced in 2.3 version. > For Python 2.4 this will raise an error, not only the warning. > http://www.python.org/doc/2.3/whatsnew/section-encodings.html So, what do we do about this? Cheetah copies the literal portions of the template definition into the template class as string literals, whether 7 bit or 8 bit. I guess that's what the warning is complaining about. But we don't know what the encoding should be. I suppose we could add a directive or compiler setting for it. -- -Mike Orr (aka. Sluggo), ms...@oz... (ir...@se...) http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol |