diff options
| author | Ben McGinnes <[email protected]> | 2018-12-26 00:01:33 +0000 | 
|---|---|---|
| committer | Ben McGinnes <[email protected]> | 2019-01-02 00:08:43 +0000 | 
| commit | 207d4289d84971d11ec1824fbe7d4a2be63b56e4 (patch) | |
| tree | 97b6e964aac61a66999f5916c7d40d5bcef716d3 /lang/python/examples/inter-edit.py | |
| parent | python: docs processing (diff) | |
| download | gpgme-207d4289d84971d11ec1824fbe7d4a2be63b56e4.tar.gz gpgme-207d4289d84971d11ec1824fbe7d4a2be63b56e4.zip  | |
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 <[email protected]>
Signed-off-by: Ben McGinnes <[email protected]>
Diffstat (limited to 'lang/python/examples/inter-edit.py')
| -rwxr-xr-x[-rw-r--r--] | lang/python/examples/inter-edit.py | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/lang/python/examples/inter-edit.py b/lang/python/examples/inter-edit.py index f11bb256..2fd74c29 100644..100755 --- 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  | 
