aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-03-19 22:39:48 +0000
committerBen McGinnes <[email protected]>2018-03-19 22:39:48 +0000
commitf0790f224d7af9521efe96e69a8f719fb89a5af2 (patch)
tree80c7ef078583910c3bfeb53187c64ec21f6f7490
parentexample: encrypt file (diff)
downloadgpgme-f0790f224d7af9521efe96e69a8f719fb89a5af2.tar.gz
gpgme-f0790f224d7af9521efe96e69a8f719fb89a5af2.zip
example: encrypt file
* Fixed typo in second encryption call.
-rwxr-xr-xlang/python/examples/howto/encrypt-file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/examples/howto/encrypt-file.py b/lang/python/examples/howto/encrypt-file.py
index 718c7157..8aee52ad 100755
--- a/lang/python/examples/howto/encrypt-file.py
+++ b/lang/python/examples/howto/encrypt-file.py
@@ -58,7 +58,7 @@ with gpg.Context(armor=True) as ca:
fa.write(ciphertext)
with gpg.Context() as cg:
- ciphertext, result, sign_result = ca.encrypt(text, recipients=rkey,
+ ciphertext, result, sign_result = cg.encrypt(text, recipients=rkey,
sign=False)
with open("{0}.gpg".format(filename), "wb") as fg:
fg.write(ciphertext)