From 207d4289d84971d11ec1824fbe7d4a2be63b56e4 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Wed, 26 Dec 2018 11:01:33 +1100 Subject: python: examples * Fixed inter-edit.py so it will actually work now. * made 3 others executable. * Fixed the semantics of assuan.py's instructions. Tested-by: Ben McGinnes Signed-off-by: Ben McGinnes --- lang/python/examples/inter-edit.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) mode change 100644 => 100755 lang/python/examples/inter-edit.py (limited to 'lang/python/examples/inter-edit.py') diff --git a/lang/python/examples/inter-edit.py b/lang/python/examples/inter-edit.py old mode 100644 new mode 100755 index f11bb256..2fd74c29 --- a/lang/python/examples/inter-edit.py +++ b/lang/python/examples/inter-edit.py @@ -40,10 +40,7 @@ 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="") if 'GET' not in keyword: # no prompt -- cgit v1.2.3