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.
This commit is contained in:
parent
1420c3bd68
commit
6078b53033
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user