Re: SyntaxError: encoding declaration in Unicode string

2014-02-16 Thread Edward K. Ream
: encoding declaration in Unicode string The code recently changed towards encoding, and I think this error is related to that recent change. I dont know where is the problem. In my code I use a lot of strings such as: u'my string' and perhaphs they are related.http://stackoverflow.com

Re: SyntaxError: encoding declaration in Unicode string

2014-02-16 Thread Fidel N
python 2.7 And I changed nothing in my scripts, just updated from leo 2 months old to the recent one. Actually, to be able to keep working, Im using the older one, until I can run the scripts on the new one, so I can try/test anything and give feedback. -- You received this message because

SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Fidel N
Hi: Just after updating, Im getting the following error in Leo log, and cant run my scripts: line 1: # -*- coding: utf-8 -*- line 2: #@+leo-ver=5 exception executing script File string, line 0 SyntaxError: encoding declaration in Unicode string The code recently changed towards

Re: SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Fidel N
Just tested the same script in the previous version of Leo I was using, and there it works. Leo 4.11 final, build 6240, 2013-11-06 So the problem is related to that code change for sure. Would you recommend me to remove all the u before all the strings I use in my scripts for them to work

Re: SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Jacob Peck
On 2/14/2014 4:39 AM, Fidel N wrote: Just tested the same script in the previous version of Leo I was using, and there it works. Leo 4.11 final, build 6240, 2013-11-06 So the problem is related to that code change for sure. Would you recommend me to remove all the u before all the strings I

Re: SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Fidel N
Hey Jake, thanks for your answer. No, not using p.script at all, just migrated to new Leo from an old version (a few months old) so my scripts didn't have that possibility yet. I wouldn't mind to adapt my scripts to the new way, if only I had a clue towards what to look for =) -- You

Re: SyntaxError: encoding declaration in Unicode string

2014-02-14 Thread Jacob Peck
On 2/14/2014 9:19 AM, Fidel N wrote: Hey Jake, thanks for your answer. No, not using p.script at all, just migrated to new Leo from an old version (a few months old) so my scripts didn't have that possibility yet. I wouldn't mind to adapt my scripts to the new way, if only I had a clue