doc: python bindings howto
authorBen McGinnes <ben@adversary.org>
Tue, 20 Mar 2018 03:57:26 +0000 (14:57 +1100)
committerBen McGinnes <ben@adversary.org>
Tue, 20 Mar 2018 03:57:26 +0000 (14:57 +1100)
* Fixed typos in examples.

lang/python/docs/GPGMEpythonHOWTOen.org

index 770c278..2a200bb 100644 (file)
       print("""
       Number of secret keys:  {0}
       Number of public keys:  {1}
-      """.format(secnum, pubnum)
+      """.format(secnum, pubnum))
     #+end_src
 
 
      newfile = input("Enter path and filename of file to save decrypted data to: ")
      with open(ciphertext, "rb") as cfile:
          plaintext, result, verify_result = gpg.Context().decrypt(cfile)
-     with open(newfile, "wb" as nfile:
+     with open(newfile, "wb") as nfile:
          nfile.write(plaintext)
    #+end_src