Home GnuPG
Diffusion GPGME bf188e280b8b

python: Fix reading data from existing files.
bf188e280b8bUnpublished

Unpublished Commit ยท Learn More

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

Description

python: Fix reading data from existing files.

* lang/python/pyme/core.py (Data.__init__): Add 'copy' kwargument, and
pass it to functions supporting it.  PEP8 fix.
(Data.new_from_fd): PEP8 fix.
(Data.new_from_file): Give a more helpful error message if copy is
False.  PEP8 fix.
(Data.new_from_fd): Hand the file descriptor to
'gpgme_data_new_from_fd', not a stream.  Fix docstring.
* lang/python/tests/t-data.py: Add tests for this.
  • Signed-off-by: Justus Winter <justus@gnupg.org>

Details

Provenance
justusAuthored on May 25 2016, 12:47 PM
Parents
rMce73ae9d0cbf: src: Fix trace string.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@gnupg.org> committed rMbf188e280b8b: python: Fix reading data from existing files. (authored by Justus Winter <justus@gnupg.org>).May 27 2016, 12:18 PM