On Thursday, March 31, 2016 at 12:24:40 AM UTC+10, Terry Brown wrote:
>
> Should be fixed, should have been g.toUnicode(txt), seeing unicode() 
> doesn't exist in Python 3.  If you can try the latest commit and 
> confirm, that would be good. 
>
 
Thanks Terry (including correctly interpreting my incomplete test sets).

Assuming I have properly pulled this into my local repository, it still 
fails, but with a new error:

Leo 5.3-devel, build 20160331215754, Thu Mar 31 21:57:54 CDT 2016

Git repo info: branch = master, commit = 59b4cf2d7d95

Python 3.5.1, PyQt version 4.8.7
linux

Traceback (most recent call last):
  File "/home/peter/Dropbox/git/leo-editor/leo/plugins/qt_events.py", line 126, 
in eventFilter
    k.masterKeyHandler(event)
  File "/home/peter/Dropbox/git/leo-editor/leo/core/leoKeys.py", line 3300, in 
masterKeyHandler
    done = k.doMode(event, state, stroke)
  File "/home/peter/Dropbox/git/leo-editor/leo/core/leoKeys.py", line 3378, in 
doMode
    val = k.callStateFunction(event) # Calls end-command.
  File "/home/peter/Dropbox/git/leo-editor/leo/core/leoKeys.py", line 3353, in 
callStateFunction
    val = k.state.handler(event)
  File "/home/peter/Dropbox/git/leo-editor/leo/core/leoKeys.py", line 2534, in 
fullCommand
    ok = k.callAltXFunction(k.mb_event)
  File "/home/peter/Dropbox/git/leo-editor/leo/core/leoKeys.py", line 2588, in 
callAltXFunction
    func(event)
  File "/home/peter/Dropbox/git/leo-editor/leo/plugins/stickynotes.py", line 
354, in stickynoteenc_f
    sn_getenckey()
  File "/home/peter/Dropbox/git/leo-editor/leo/plugins/stickynotes.py", line 
421, in sn_getenckey
    sha.update(txt)
  File 
"/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/Crypto/Hash/hashalgo.py",
 line 69, in update
    return self._hash.update(data)
TypeError: Unicode-objects must be encoded before hashing

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to