diff options
author | Ben McGinnes <[email protected]> | 2018-08-30 05:41:31 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-08-30 05:41:31 +0000 |
commit | 1d00fb987b903e245d484bddfe3c0a0aba670ac1 (patch) | |
tree | eb8ae3d269b59933b21537d7fc65199c672f7c4c /lang/python/src/core.py | |
parent | js: return base64 after encrypt with armor=false (diff) | |
download | gpgme-1d00fb987b903e245d484bddfe3c0a0aba670ac1.tar.gz gpgme-1d00fb987b903e245d484bddfe3c0a0aba670ac1.zip |
python bindings: estreams fixben/estreams-fix
* lang/python/src/core.py: Adjusted new_from_estream function to alias
new_from_stream instead of fd.
* fixed the _gpgme import errors introduced in commit
08cd34afb762975b0273575035dacf69449ef241 by changing the exported
functions/types to match the inner module where all the work is
done, rather than the outer one(s).
Tested-by: Ben McGinnes <[email protected]>
Signed-off-by: Ben McGinnes <[email protected]>
Diffstat (limited to 'lang/python/src/core.py')
-rw-r--r-- | lang/python/src/core.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lang/python/src/core.py b/lang/python/src/core.py index 1a0ec98e..f440d92d 100644 --- a/lang/python/src/core.py +++ b/lang/python/src/core.py @@ -1562,18 +1562,18 @@ class Data(GpgmeWrapper): self.wrapped = gpgme.gpgme_data_t_p_value(tmp) gpgme.delete_gpgme_data_t_p(tmp) - def new_from_estream(self, file): - """This wrap around gpgme_data_new_from_estream is an alias for - new_from_fd() method since in python there's no difference - between file stream and file descriptor""" - self.new_from_fd(file) - def new_from_stream(self, file): """This wrap around gpgme_data_new_from_stream is an alias for new_from_fd() method since in python there's no difference - between file stream and file descriptor""" + between file stream and file descriptor.""" self.new_from_fd(file) + def new_from_estream(self, file): + """This wrap around gpgme_data_new_from_estream is an alias for + new_from_fd() method since in python there's no difference + between file stream and file descriptor, but using fd broke.""" + self.new_from_stream(file) + def write(self, buffer): """Write buffer given as string or bytes. |