diff options
author | Ben McGinnes <[email protected]> | 2018-07-07 17:40:35 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-07-07 17:40:35 +0000 |
commit | cacca62d06c6cf4a291f7ab2571cf52d671d140f (patch) | |
tree | 561ba716f584abd3ba5648a397036a30be8a95ec /lang/python/examples/howto/export-secret-keys.py | |
parent | qt: Handle OpenPGP Diagnostic log (diff) | |
download | gpgme-cacca62d06c6cf4a291f7ab2571cf52d671d140f.tar.gz gpgme-cacca62d06c6cf4a291f7ab2571cf52d671d140f.zip |
python bindings: howto examples
* Made sure all example scripts meet PEP8 compliance.
* Required fixing approx. a dozen of them in minor ways.
Diffstat (limited to 'lang/python/examples/howto/export-secret-keys.py')
-rwxr-xr-x | lang/python/examples/howto/export-secret-keys.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/python/examples/howto/export-secret-keys.py b/lang/python/examples/howto/export-secret-keys.py index 03037c92..f0a791ef 100755 --- a/lang/python/examples/howto/export-secret-keys.py +++ b/lang/python/examples/howto/export-secret-keys.py @@ -3,6 +3,12 @@ from __future__ import absolute_import, division, unicode_literals +import gpg +import os +import os.path +import subprocess +import sys + # Copyright (C) 2018 Ben McGinnes <[email protected]> # # This program is free software; you can redistribute it and/or modify it under @@ -24,12 +30,6 @@ from __future__ import absolute_import, division, unicode_literals # Lesser General Public along with this program; if not, see # <http://www.gnu.org/licenses/>. -import gpg -import os -import os.path -import subprocess -import sys - print(""" This script exports one or more secret keys as both ASCII armored and binary file formats, saved in files within the user's GPG home directory. |