Strings vs. Bytes
* CLI input must be byte encoded.
This commit is contained in:
parent
325b0ca341
commit
40290507bc
@ -48,7 +48,7 @@ if len(sys.argv) != 2:
|
|||||||
else:
|
else:
|
||||||
c = Context()
|
c = Context()
|
||||||
out = Data()
|
out = Data()
|
||||||
c.op_keylist_start(sys.argv[1], 0)
|
c.op_keylist_start(sys.argv[1].encode('utf-8'), 0)
|
||||||
key = c.op_keylist_next()
|
key = c.op_keylist_next()
|
||||||
helper = {"skip": 0, "data": out}
|
helper = {"skip": 0, "data": out}
|
||||||
c.op_edit(key, edit_fnc, helper, out)
|
c.op_edit(key, edit_fnc, helper, out)
|
||||||
|
Loading…
Reference in New Issue
Block a user