From 6078b5303362b2e5ce56660967fac313ca3d5ae9 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Wed, 29 Aug 2018 22:03:06 +1000 Subject: 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. --- lang/python/src/core.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lang/python/src') 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) -- cgit v1.2.3