diff options
author | Ben McGinnes <[email protected]> | 2018-08-18 08:46:47 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-08-18 08:46:47 +0000 |
commit | b5fbe90676f46b9615919133753a65b20318fe63 (patch) | |
tree | 2a2a31396434844b266813fd96c5d089570536c3 /lang/python/examples/inter-edit.py | |
parent | Python bindings setup: Near PEP8 compliance (diff) | |
download | gpgme-b5fbe90676f46b9615919133753a65b20318fe63.tar.gz gpgme-b5fbe90676f46b9615919133753a65b20318fe63.zip |
Python bindings examples: PEP8 conpliance
* Appears to be complete compliance.
Diffstat (limited to 'lang/python/examples/inter-edit.py')
-rw-r--r-- | lang/python/examples/inter-edit.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/python/examples/inter-edit.py b/lang/python/examples/inter-edit.py index ed0d8c42..5b58c97b 100644 --- a/lang/python/examples/inter-edit.py +++ b/lang/python/examples/inter-edit.py @@ -15,15 +15,15 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. - """Simple interactive editor to test editor scripts""" from __future__ import absolute_import, print_function, unicode_literals -del absolute_import, print_function, unicode_literals import sys import gpg +del absolute_import, print_function, unicode_literals + if len(sys.argv) != 2: sys.exit("Usage: %s <Gpg key pattern>\n" % sys.argv[0]) @@ -40,10 +40,12 @@ with gpg.Context() as c: print("Editing key {} ({}):".format(key.uids[0].uid, key.subkeys[0].fpr)) def edit_fnc(keyword, args): - print("Status: {}, args: {} > ".format( - keyword, args), end='', flush=True) + print( + "Status: {}, args: {} > ".format(keyword, args), + end='', + flush=True) - if not 'GET' in keyword: + if 'GET' not in keyword: # no prompt print() return None |