From cacca62d06c6cf4a291f7ab2571cf52d671d140f Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Sun, 8 Jul 2018 03:40:35 +1000 Subject: python bindings: howto examples * Made sure all example scripts meet PEP8 compliance. * Required fixing approx. a dozen of them in minor ways. --- lang/python/examples/howto/encrypt-to-group-trustno1.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lang/python/examples/howto/encrypt-to-group-trustno1.py') diff --git a/lang/python/examples/howto/encrypt-to-group-trustno1.py b/lang/python/examples/howto/encrypt-to-group-trustno1.py index 736c5f10..da0376b5 100755 --- a/lang/python/examples/howto/encrypt-to-group-trustno1.py +++ b/lang/python/examples/howto/encrypt-to-group-trustno1.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 # # 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 # . -import gpg -import sys -from groups import group_lists - """ Uses the groups module to encrypt to multiple recipients. @@ -83,7 +83,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 -- cgit v1.2.3