On Wed, 17 Sep 2008 06:53:24 -0500 "Timothy R. Chavez" <[EMAIL PROTECTED]> wrote:
> Hi Chirag, > > On Tue, 2008-09-16 at 19:28 +0530, Chirag Jog wrote: > > This patch ensures that the python scripts support utf encoding. > > > > Prior to the patch, the python scripts would exit with this error: > > > > File "parse-testpi1.py", line 3 > > SyntaxError: Non-ASCII character '\xc2' in file parse-testpi1.py on line 3, > > but no encoding declared; see http://www.python.org/peps/pep-0263.html for > > details > > This patch fixes it. > > > > Tested: Running all the python scripts. > > I'm generally supportive of this patch, but I also think that the > copyright statements, themselves, should be updated to remove the > extraneous  characters as well.. Seconded ;-) > Otherwise, > > > > > Signed-Off-By: Chirag <[EMAIL PROTECTED]> > > > > Acked-by: Timothy R. Chavez <[EMAIL PROTECTED]> > > > func/pi-tests/parse-testpi1.py | 2 ++ > > func/pi-tests/parse-testpi2.py | 2 ++ > > func/sched_football/parse-football.py | 4 +++- > > scripts/parser.py | 2 ++ > > 4 files changed, 9 insertions(+), 1 deletion(-) > > > > > > diff --git a/testcases/realtime/func/pi-tests/parse-testpi1.py > > b/testcases/realtime/func/pi-tests/parse-testpi1.py > > index a073cf8..107e38a 100644 > > --- a/testcases/realtime/func/pi-tests/parse-testpi1.py > > +++ b/testcases/realtime/func/pi-tests/parse-testpi1.py > > @@ -1,3 +1,5 @@ > > +# -*- coding: utf-8 -*- > > + > > > > ################################################################################ > > ## > > ## > > ## Copyright © International Business Machines Corp., 2007, 2008 > > ## > > ^^ > > > diff --git a/testcases/realtime/func/pi-tests/parse-testpi2.py > > b/testcases/realtime/func/pi-tests/parse-testpi2.py > > index b846bcb..b70d177 100644 > > --- a/testcases/realtime/func/pi-tests/parse-testpi2.py > > +++ b/testcases/realtime/func/pi-tests/parse-testpi2.py > > @@ -1,3 +1,5 @@ > > +# -*- coding: utf-8 -*- > > + > > > > ################################################################################ > > ## > > ## > > ## Copyright © International Business Machines Corp., 2007, 2008 > > ## > > diff --git a/testcases/realtime/func/sched_football/parse-football.py > > b/testcases/realtime/func/sched_football/parse-football.py > > index 882a6c0..cd252c7 100644 > > --- a/testcases/realtime/func/sched_football/parse-football.py > > +++ b/testcases/realtime/func/sched_football/parse-football.py > > @@ -1,3 +1,5 @@ > > +# -*- coding: utf-8 -*- > > + > > > > ################################################################################ > > ## > > ## > > ## Copyright © International Business Machines Corp., 2007, 2008 > > ## > > @@ -15,7 +17,7 @@ > > ## You should have received a copy of the GNU General Public License > > ## > > ## along with this program; if not, write to the Free Software > > ## > > ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > > ## > > -## ## > > +## > > ## > > ## NAME: parse-football.py > > ## > > ## > > ## > > ## DESCRIPTION: Log Parser for the sched_football.c test > > ## > > diff --git a/testcases/realtime/scripts/parser.py > > b/testcases/realtime/scripts/parser.py > > index 840a6ae..a246260 100644 > > --- a/testcases/realtime/scripts/parser.py > > +++ b/testcases/realtime/scripts/parser.py > > @@ -1,3 +1,5 @@ > > +# -*- coding: utf-8 -*- > > + > > > > ################################################################################ > > ## > > ## > > ## Copyright © International Business Machines Corp., 2007, 2008 > > ## > > > -- > -tim > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
