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

by Ben McGinnes cvs at cvs.gnupg.org
Mon Mar 12 20:12:55 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  a8f48b6f577d562c25fd0191c0cc2cc8e96078c1 (commit)
       via  83b1336ceebb86e13a55bbf220df2d750f6b3ec6 (commit)
      from  0e1300ce777dd0c87f31ac8bc49846b9df242df9 (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 a8f48b6f577d562c25fd0191c0cc2cc8e96078c1
Author: Ben McGinnes <ben at adversary.org>
Date:   Tue Mar 13 06:09:53 2018 +1100

    doc: python bindings howto
    
    * error corrections.
    * multiple typesetting fixes only required due to certain archaic
      eccentricities of LaTeX.
    * a couple of minor python PEP8 compliance corrections.

diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index 22b47cc..46bd231 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -13,9 +13,10 @@
   :CUSTOM_ID: intro
   :END:
 
-  Version: 0.0.1-alpha [2018-03-07 Wed]
-  Author: Ben McGinnes <ben at gnupg.org>
-  Author GPG Key: DB4724E6FA4286C92B4E55C4321E4E2373590E5D
+  | Version:        | 0.0.1-alpha                              |
+  | Author:         | Ben McGinnes <ben at gnupg.org>             |
+  | Author GPG Key: | DB4724E6FA4286C92B4E55C4321E4E2373590E5D |
+  | Language:       | English                                  |
 
   This document provides basic instruction in how to use the GPGME
   Python bindings to programmatically leverage the GPGME library.
@@ -349,7 +350,7 @@
 
     Encrypting to multiple keys, in addition to a default key or a key
     configured to always encrypt to, is a little different and uses a
-    slightly different call to the op_encrypt call demonstrated in the
+    slightly different call to the =op_encrypt call= demonstrated in the
     previous section.
 
     The following example encrypts a message (=text=) to everyone with
@@ -360,7 +361,7 @@
     #+begin_src python
       import gpg
 
-      text=b"""Oh look, another test message.
+      text = b"""Oh look, another test message.
 
       The same rules apply as with the previous example and more likely
       than not, the message will actually be drawn from reading the
@@ -640,7 +641,7 @@
 
 * Footnotes
 
-[fn:1] Short_History.org and/or Short_History.html.
+[fn:1] =Short_History.org= and/or =Short_History.html=.
 
 [fn:2] The =lang/python/docs/= directory in the GPGME source.
 

commit 83b1336ceebb86e13a55bbf220df2d750f6b3ec6
Author: Ben McGinnes <ben at adversary.org>
Date:   Tue Mar 13 05:42:50 2018 +1100

    doc: python bindings howto
    
    * Fixed an error in the encryption try/except statement.

diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index 84be851..22b47cc 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -414,7 +414,9 @@
 	  for i in range(len(e.recipients)):
 	      for n in range(len(rlogrus)):
 		  if rlogrus[n].fpr == e.recipients[i].fpr:
-		      rlogrus.remove(e.recipients[i])
+		      rlogrus.remove(rlogrus[n])
+                  else:
+                      pass
 	  try:
 	      cipher = c.encrypt(text, recipients=rlogrus, add_encrypt_to=True)
 	  except:

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

Summary of changes:
 lang/python/docs/GPGMEpythonHOWTOen.org | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)


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




More information about the Gnupg-commits mailing list