Home GnuPG
Diffusion GPGME d60deb8a127f

python: Fix type translation.
d60deb8a127fUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: Fix type translation.

* lang/python/gpgme.i: Adjust to Python3's string type being
'Unicode', not 'bytes'.  Fix type checking.
* lang/python/core.py (Data.write): Add docstring mentioning the
expected type of parameter 'buffer'.
(Data.read): Adjust read loop.  Also, use a saner chunk size, and join
all chunks at the end instead of adding them.
* lang/python/examples/simple.py: Adjust example.
  • Signed-off-by: Justus Winter <justus@gnupg.org>

Details

Provenance
justusAuthored on May 12 2016, 11:21 AM
Parents
rMbbeee5e1a060: python: Fix simple example.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@gnupg.org> committed rMd60deb8a127f: python: Fix type translation. (authored by Justus Winter <justus@gnupg.org>).May 12 2016, 11:49 AM