: 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
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
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
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
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
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
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