doc: python bindings howto
* Fixed typos in examples.
This commit is contained in:
parent
96d0395bcc
commit
52e262991f
@ -406,7 +406,7 @@
|
|||||||
print("""
|
print("""
|
||||||
Number of secret keys: {0}
|
Number of secret keys: {0}
|
||||||
Number of public keys: {1}
|
Number of public keys: {1}
|
||||||
""".format(secnum, pubnum)
|
""".format(secnum, pubnum))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
@ -671,7 +671,7 @@
|
|||||||
newfile = input("Enter path and filename of file to save decrypted data to: ")
|
newfile = input("Enter path and filename of file to save decrypted data to: ")
|
||||||
with open(ciphertext, "rb") as cfile:
|
with open(ciphertext, "rb") as cfile:
|
||||||
plaintext, result, verify_result = gpg.Context().decrypt(cfile)
|
plaintext, result, verify_result = gpg.Context().decrypt(cfile)
|
||||||
with open(newfile, "wb" as nfile:
|
with open(newfile, "wb") as nfile:
|
||||||
nfile.write(plaintext)
|
nfile.write(plaintext)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user