diff options
author | Justus Winter <[email protected]> | 2016-05-12 09:21:58 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-05-12 09:49:17 +0000 |
commit | d60deb8a127fb35c01acc729f33b014840af0e7b (patch) | |
tree | d5188d0cc07273b80e6728b1e95fc757c7630e5d /lang/python/examples/t-edit.py | |
parent | python: Fix simple example. (diff) | |
download | gpgme-d60deb8a127fb35c01acc729f33b014840af0e7b.tar.gz gpgme-d60deb8a127fb35c01acc729f33b014840af0e7b.zip |
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 <[email protected]>
Diffstat (limited to 'lang/python/examples/t-edit.py')
0 files changed, 0 insertions, 0 deletions