[git] GPGME - branch, ben/docs/2018-03, updated. gpgme-1.10.0-138-g7ddff71

by Ben McGinnes cvs at cvs.gnupg.org
Wed Mar 21 20:06:17 CET 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/docs/2018-03 has been updated
       via  7ddff71908a85111c8e0da41312197b3b1a77da6 (commit)
      from  c6a0395f0a3a57071f0c943f7815f58a02f9d2f3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7ddff71908a85111c8e0da41312197b3b1a77da6
Author: Ben McGinnes <ben at adversary.org>
Date:   Thu Mar 22 06:05:10 2018 +1100

    examples: encryption
    
    * Fixed two incorrect Context() objects.

diff --git a/lang/python/examples/howto/encrypt-file.py b/lang/python/examples/howto/encrypt-file.py
index 877226d..ad4e1ce 100755
--- a/lang/python/examples/howto/encrypt-file.py
+++ b/lang/python/examples/howto/encrypt-file.py
@@ -48,7 +48,7 @@ else:
     a_key = input("Enter the fingerprint or key ID to encrypt to: ")
     filename = input("Enter the path and filename to encrypt: ")
 
-rkey = list(c.keylist(pattern=a_key, secret=False))
+rkey = list(gpg.Context().keylist(pattern=a_key, secret=False))
 with open(filename, "rb") as f:
     text = f.read()
 
diff --git a/lang/python/examples/howto/encrypt-sign-file.py b/lang/python/examples/howto/encrypt-sign-file.py
index 4b29b27..41aaac8 100755
--- a/lang/python/examples/howto/encrypt-sign-file.py
+++ b/lang/python/examples/howto/encrypt-sign-file.py
@@ -51,7 +51,7 @@ else:
     a_key = input("Enter the fingerprint or key ID to encrypt to: ")
     filename = input("Enter the path and filename to encrypt: ")
 
-rkey = list(c.keylist(pattern=a_key, secret=False))
+rkey = list(gpg.Context().keylist(pattern=a_key, secret=False))
 with open(filename, "rb") as f:
     text = f.read()
 

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

Summary of changes:
 lang/python/examples/howto/encrypt-file.py      | 2 +-
 lang/python/examples/howto/encrypt-sign-file.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


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




More information about the Gnupg-commits mailing list