python: More type conversion fixes.
authorJustus Winter <justus@gnupg.org>
Thu, 19 May 2016 08:55:34 +0000 (10:55 +0200)
committerJustus Winter <justus@gnupg.org>
Thu, 19 May 2016 09:09:45 +0000 (11:09 +0200)
commitc1c893e3384a07ff864507902fbac4a7fee4d6f1
tree28e1965c5d81b9134188b31d2495b3d16c6cefa5
parent07f71cd17706093ca6b1507c41609356d479ae9f
python: More type conversion fixes.

* lang/python/helpers.c (pyPassphraseCb): Cope with 'uid_hint' being
NULL, convert it to an Unicode object, and cope with the callback
returning both Unicode and bytes objects.

Signed-off-by: Justus Winter <justus@gnupg.org>
lang/python/helpers.c