diff options
author | Ben McGinnes <[email protected]> | 2018-08-19 04:32:30 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-08-19 04:32:30 +0000 |
commit | 75bc5e6356eca1b7fb76653e7c82c2477f8859b0 (patch) | |
tree | 22f93580f26a9ada452af3fddf0a7cd3d0bb8879 /lang/python/examples/howto/import-key.py | |
parent | Python bindings setup file (diff) | |
download | gpgme-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-x | lang/python/examples/howto/import-key.py | 4 |
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) |