aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/howto/import-key.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-08-19 04:32:30 +0000
committerBen McGinnes <[email protected]>2018-08-19 04:32:30 +0000
commit75bc5e6356eca1b7fb76653e7c82c2477f8859b0 (patch)
tree22f93580f26a9ada452af3fddf0a7cd3d0bb8879 /lang/python/examples/howto/import-key.py
parentPython bindings setup file (diff)
downloadgpgme-75bc5e6356eca1b7fb76653e7c82c2477f8859b0.tar.gz
gpgme-75bc5e6356eca1b7fb76653e7c82c2477f8859b0.zip
Python bindings examples
* import-key.py: fixed a minor typo. * pmkey-import.py: locates and imports keys from the ProtonMail keyserver. * pmkey-import-alt.py: the same as the previous except with setting an alternative $GNUPGHOME directory.
Diffstat (limited to 'lang/python/examples/howto/import-key.py')
-rwxr-xr-xlang/python/examples/howto/import-key.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/python/examples/howto/import-key.py b/lang/python/examples/howto/import-key.py
index 464052d3..25913785 100755
--- a/lang/python/examples/howto/import-key.py
+++ b/lang/python/examples/howto/import-key.py
@@ -7,6 +7,8 @@ import gpg
import os.path
import sys
+del absolute_import, division, unicode_literals
+
# Copyright (C) 2018 Ben McGinnes <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it under
@@ -29,7 +31,7 @@ import sys
# <http://www.gnu.org/licenses/>.
print("""
-This script exports one or more public keys.
+This script imports one or more public keys from a single file.
""")
c = gpg.Context(armor=True)