python: Fix using strings as commands in the assuan protocol.
authorJustus Winter <justus@g10code.com>
Fri, 17 Feb 2017 11:10:34 +0000 (12:10 +0100)
committerJustus Winter <justus@g10code.com>
Fri, 17 Feb 2017 11:10:34 +0000 (12:10 +0100)
commit9350168a1eed3f055040d7cc8a9bf4cdf745b23a
treee6f169df44139b8b62c4160dda92ae16ca222c80
parent7641b7b5f2c9d5b38c60cd9326bcb4810c37dae5
python: Fix using strings as commands in the assuan protocol.

* lang/python/gpg/core.py (Context.assuan_transact): Fix testing
whether the command is a string on Python2.
* lang/python/tests/t-protocol-assuan.py: Improve the test to detect
this problem.

Signed-off-by: Justus Winter <justus@g10code.com>
lang/python/gpg/core.py
lang/python/tests/t-protocol-assuan.py