diff options
Diffstat (limited to 'lang/python/src/core.py')
| -rw-r--r-- | lang/python/src/core.py | 8 | 
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) | 
