aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/howto/encrypt-to-group.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-07-07 17:40:35 +0000
committerBen McGinnes <[email protected]>2018-07-07 17:40:35 +0000
commitcacca62d06c6cf4a291f7ab2571cf52d671d140f (patch)
tree561ba716f584abd3ba5648a397036a30be8a95ec /lang/python/examples/howto/encrypt-to-group.py
parentqt: Handle OpenPGP Diagnostic log (diff)
downloadgpgme-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/encrypt-to-group.py')
-rwxr-xr-xlang/python/examples/howto/encrypt-to-group.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/python/examples/howto/encrypt-to-group.py b/lang/python/examples/howto/encrypt-to-group.py
index 84f8d103..d4cb0745 100755
--- a/lang/python/examples/howto/encrypt-to-group.py
+++ b/lang/python/examples/howto/encrypt-to-group.py
@@ -3,6 +3,10 @@
from __future__ import absolute_import, division, unicode_literals
+import gpg
+import sys
+from groups import group_lists
+
# Copyright (C) 2018 Ben McGinnes <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it under
@@ -24,10 +28,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 sys
-from groups import group_lists
-
"""
Uses the groups module to encrypt to multiple recipients.
@@ -84,7 +84,7 @@ if klist is not None:
except:
pass
with open("{0}.asc".format(filepath), "wb") as f:
- f.write(ciphertext)
+ f.write(ciphertext)
else:
pass