[git] GPGME - branch, master, updated. gpgme-1.11.1-22-g48e946a

by Ben McGinnes cvs at cvs.gnupg.org
Thu May 24 21:55:29 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, master has been updated
       via  48e946a96d05effd56b34761b98eebb6b2a6fae1 (commit)
       via  9038d30017b2e38b183d093f9b5d46e1f24c70a6 (commit)
      from  9fca7c84067c0d4c968c8920dc8ef9449769c5ea (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 48e946a96d05effd56b34761b98eebb6b2a6fae1
Author: Ben McGinnes <ben at adversary.org>
Date:   Fri May 25 05:22:16 2018 +1000

    docs: python bindings howto
    
    * Fixed the groups.py script so it really does what is described (the
      old code had the same result for groups, group_lines and
      group_lists).
    * Updated the corresponding example in the doc to match.

diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index d7a1891..c9397bc 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -1348,15 +1348,17 @@
 	 if lines[i].startswith("group") is True:
 	     line = lines[i]
 	 else:
-	     pass
+		 pass
 
      groups = line.split(":")[-1].replace('"', '').split(',')
 
-     group_lines = groups
-     for i in range(len(group_lines)):
-	 group_lines[i] = group_lines[i].split("=")
+     group_lines = []
+     group_lists = []
+
+     for i in range(len(groups)):
+	 group_lines.append(groups[i].split("="))
+	 group_lists.append(groups[i].split("="))
 
-     group_lists = group_lines
      for i in range(len(group_lists)):
 	 group_lists[i][1] = group_lists[i][1].split()
    #+end_src
diff --git a/lang/python/examples/howto/groups.py b/lang/python/examples/howto/groups.py
index 5e7fdf6..fe31d7f 100644
--- a/lang/python/examples/howto/groups.py
+++ b/lang/python/examples/howto/groups.py
@@ -41,10 +41,12 @@ for i in range(len(lines)):
 
 groups = line.split(":")[-1].replace('"', '').split(',')
 
-group_lines = groups
-for i in range(len(group_lines)):
-    group_lines[i] = group_lines[i].split("=")
+group_lines = []
+group_lists = []
+
+for i in range(len(groups)):
+    group_lines.append(groups[i].split("="))
+    group_lists.append(groups[i].split("="))
 
-group_lists = group_lines
 for i in range(len(group_lists)):
     group_lists[i][1] = group_lists[i][1].split()

commit 9038d30017b2e38b183d093f9b5d46e1f24c70a6
Author: Ben McGinnes <ben at adversary.org>
Date:   Mon May 14 04:14:45 2018 +1000

    doc: python bindings howto
    
    * Fixed org-mode python source indenting.
    ** Note: nested indented blocks do not indent correctly when exported
       to [X]HTML.

diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index ef66eff..d7a1891 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -588,7 +588,7 @@
 	      logrus.append(rpattern[i])
 
       ciphertext, result, sign_result = c.encrypt(text, recipients=logrus, sign=False,
-						  always_trust=True)
+				  always_trust=True)
 
       with open("secret_plans.txt.asc", "wb") as afile:
 	  afile.write(ciphertext)
@@ -950,7 +950,7 @@
 
    #+begin_src python
      with open(filename, "rb") as afile:
-         text = afile.read()
+	 text = afile.read()
 
      if text == data:
 	 print("Good signature.")
@@ -1050,7 +1050,6 @@
     tofu-default-policy unknown
     enable-large-rsa
     enable-dsa2
-    # cert-digest-algo SHA256
     cert-digest-algo SHA512
     default-preference-list TWOFISH CAMELLIA256 AES256 CAMELLIA192 AES192 CAMELLIA128 AES BLOWFISH IDEA CAST5 3DES SHA512 SHA384 SHA256 SHA224 RIPEMD160 SHA1 ZLIB BZIP2 ZIP Uncompressed
     personal-cipher-preferences TWOFISH CAMELLIA256 AES256 CAMELLIA192 AES192 CAMELLIA128 AES BLOWFISH IDEA CAST5 3DES

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

Summary of changes:
 lang/python/docs/GPGMEpythonHOWTOen.org | 17 +++++++++--------
 lang/python/examples/howto/groups.py    | 10 ++++++----
 2 files changed, 15 insertions(+), 12 deletions(-)


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




More information about the Gnupg-commits mailing list