cloudmatrix/esky — Issue #8: Missed str<->bytes conversions for py3k
Author: vkosh
Created: 2012-03-07 14:06:31+00:00
State: open

There are some places in sudo_*.py and __init__.py where conversions between str and bytes for python 3 are missed. This leads to errors on cleanup sometime:
Error in atexit._run_exitfuncs:

Traceback (most recent call last):
File "c:\python32\lib\subprocess.py", line 741, in __init__
restore_signals, start_new_session)
File "c:\python32\lib\subprocess.py", line 919, in _execute_child
args = list2cmdline(args)
File "c:\python32\lib\subprocess.py", line 561, in list2cmdline
needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError
Type str doesn't support the buffer API

So the patch fixes the issue may looks like this: https://gist.github.com/1993286
(I use custom py3k fork of esky outside of github, so I can't provide you with pull request yet. But I'll try to publish the fork asap.)