[git] GPGME - branch, ben/estreams-fix, created. gpgme-1.11.1-259-g1d00fb9

by Ben McGinnes cvs at cvs.gnupg.org
Thu Aug 30 07:59:30 CEST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, ben/estreams-fix has been created
        at  1d00fb987b903e245d484bddfe3c0a0aba670ac1 (commit)

- Log -----------------------------------------------------------------
commit 1d00fb987b903e245d484bddfe3c0a0aba670ac1
Author: Ben McGinnes <ben at adversary.org>
Date:   Thu Aug 30 15:41:31 2018 +1000

    python bindings: 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 <ben at adversary.org>
    Signed-off-by: Ben McGinnes <ben at adversary.org>

diff --git a/lang/python/src/core.py b/lang/python/src/core.py
index 1a0ec98..f440d92 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.
 
diff --git a/src/gpgme.def b/src/gpgme.def
index c690220..f0f748e 100644
--- a/src/gpgme.def
+++ b/src/gpgme.def
@@ -272,7 +272,7 @@ EXPORTS
     gpgme_op_encrypt_sign_ext             @202
     gpgme_op_encrypt_sign_ext_start       @203
 
-    gpgme_data_new_from_estream           @204
+    _gpgme_data_new_from_estream          @204
 
 ; END
 
diff --git a/src/libgpgme.vers b/src/libgpgme.vers
index 7531f54..8faed5e 100644
--- a/src/libgpgme.vers
+++ b/src/libgpgme.vers
@@ -134,7 +134,7 @@ GPGME_1.1 {
     gpgme_op_decrypt_ext;
     gpgme_op_decrypt_ext_start;
 
-    gpgme_data_new_from_estream;
+    _gpgme_data_new_from_estream;
 
 };
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list