diff options
author | Justus Winter <[email protected]> | 2016-05-25 10:47:28 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-05-27 10:18:29 +0000 |
commit | bf188e280b8b4fc775f33c47e2e1e275ed044004 (patch) | |
tree | 1054c20ee41658ffaa89d84d7baf1e49e00c9d89 /lang/python/tests/t-decrypt.py | |
parent | src: Fix trace string. (diff) | |
download | gpgme-bf188e280b8b4fc775f33c47e2e1e275ed044004.tar.gz gpgme-bf188e280b8b4fc775f33c47e2e1e275ed044004.zip |
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 <[email protected]>
Diffstat (limited to 'lang/python/tests/t-decrypt.py')
0 files changed, 0 insertions, 0 deletions