logo       

Re: Cheetah and PEP255: msg#00055

python.cheetah

Subject: Re: Cheetah and PEP255

I've just added a new '#encoding' directive to handle this.

"""
#encoding UTF-8
"""
will add
"""
# -*- coding: UTF-8 -*-
"""
after the shBang line at the top of the compiled module file.

Cheers,
Tavis

On Wednesday 22 October 2003 01:10, 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
>
> --
> JZ
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by OSDN developer relations
> Here's your chance to show off your extensive product knowledge
> We want to know what you know. Tell us and you have a chance to win $100
> http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
> _______________________________________________
> Cheetahtemplate-discuss mailing list
> Cheetahtemplate-discuss@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise