From 75bc5e6356eca1b7fb76653e7c82c2477f8859b0 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Sun, 19 Aug 2018 14:32:30 +1000 Subject: 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. --- lang/python/examples/howto/import-key.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lang/python/examples/howto/import-key.py') 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 # # This program is free software; you can redistribute it and/or modify it under @@ -29,7 +31,7 @@ import sys # . 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) -- cgit v1.2.3