[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: tragesym.py question



Hi Joel,

On Tuesday 19 December 2006 19:09, Ostheller, Joel A. wrote:
> I am running Python 2.3.4 on RHL 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25
> 17:24:31 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
>
> I ran the command below, and received the error below:
>
> ------------------- cut ---------------------
>
> $./tragesym.py tests/test1.src max1684.sym
>
> sys:1: DeprecationWarning: Non-ASCII character '\xb0' in file
> ./tragesym.py on line 387, but no encoding declared; see
> http://www.python.org/peps/pep-0263.html for details
>
> ------------------- end cut -----------------
>
> Looking at the code I discovered that the problem is with the
> comment, specifically the degree symbol " #with 90° text". What is
> the fix for this error (besides editing the code and deleting the
> degree symbol?)?

Just do what the URL tells and put an encoding line into tragesym.

I'm wondering with tragesym version your using?
The current tragesym (0.0.9) already has an encoding string.

#!/usr/bin/python
# coding: iso8859-1

Regards
Werner


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user