aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-03-20 03:57:26 +0000
committerBen McGinnes <[email protected]>2018-03-20 03:57:26 +0000
commit52e262991f1fdf7da93882c3b22c05537376cf49 (patch)
tree342daa8352e2da80fea1b7d9cd03b2e018971998
parentexample: keycount (diff)
downloadgpgme-52e262991f1fdf7da93882c3b22c05537376cf49.tar.gz
gpgme-52e262991f1fdf7da93882c3b22c05537376cf49.zip
doc: python bindings howto
* Fixed typos in examples.
-rw-r--r--lang/python/docs/GPGMEpythonHOWTOen.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index 770c2784..2a200bb7 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -406,7 +406,7 @@
print("""
Number of secret keys: {0}
Number of public keys: {1}
- """.format(secnum, pubnum)
+ """.format(secnum, pubnum))
#+end_src
@@ -671,7 +671,7 @@
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