aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/src/core.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-08-29 12:03:06 +0000
committerBen McGinnes <[email protected]>2018-08-29 15:01:23 +0000
commit6078b5303362b2e5ce56660967fac313ca3d5ae9 (patch)
tree261375eef0e259cf0f3e5a5aba33ffe20b5bc86b /lang/python/src/core.py
parentjson: Fix detached verify (diff)
downloadgpgme-6078b5303362b2e5ce56660967fac313ca3d5ae9.tar.gz
gpgme-6078b5303362b2e5ce56660967fac313ca3d5ae9.zip
python bindings: core
* lang/python/src/core.py: added new function new_from_estream to wrap new_from_fd just like new_from_stream does and for the same reason.
Diffstat (limited to 'lang/python/src/core.py')
-rw-r--r--lang/python/src/core.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python/src/core.py b/lang/python/src/core.py
index d4711317..be3ebd11 100644
--- a/lang/python/src/core.py
+++ b/lang/python/src/core.py
@@ -1560,9 +1560,15 @@ 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 not difference
+ new_from_fd() method since in python there's no difference
between file stream and file descriptor"""
self.new_from_fd(file)