diff options
Diffstat (limited to '')
-rwxr-xr-x | lang/python/examples/howto/encrypt-to-group-gullible.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/python/examples/howto/encrypt-to-group-gullible.py b/lang/python/examples/howto/encrypt-to-group-gullible.py index 7ebfb6bc..c96e8294 100755 --- a/lang/python/examples/howto/encrypt-to-group-gullible.py +++ b/lang/python/examples/howto/encrypt-to-group-gullible.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. @@ -74,7 +74,7 @@ if klist is not None: add_encrypt_to=True, always_trust=True) with open("{0}.asc".format(filepath), "wb") as f: - f.write(ciphertext) + f.write(ciphertext) else: pass |