diff options
author | Ben McGinnes <[email protected]> | 2018-12-26 00:01:33 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-12-26 00:01:33 +0000 |
commit | d406471d4bf9c79140e4bc91de7d316ec7465892 (patch) | |
tree | 1fa22c5a8ac91748788040c33b0bf172d3d38e35 | |
parent | python: docs (diff) | |
download | gpgme-d406471d4bf9c79140e4bc91de7d316ec7465892.tar.gz gpgme-d406471d4bf9c79140e4bc91de7d316ec7465892.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]>
-rwxr-xr-x[-rw-r--r--] | lang/python/examples/assuan.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | lang/python/examples/decryption-filter.py | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | lang/python/examples/inter-edit.py | 5 | ||||
-rwxr-xr-x[-rw-r--r--] | lang/python/examples/testCMSgetkey.py | 0 |
4 files changed, 3 insertions, 6 deletions
diff --git a/lang/python/examples/assuan.py b/lang/python/examples/assuan.py index 84f5ff0a..84f5ff0a 100644..100755 --- a/lang/python/examples/assuan.py +++ b/lang/python/examples/assuan.py diff --git a/lang/python/examples/decryption-filter.py b/lang/python/examples/decryption-filter.py index 1b04184c..d0fc3a4b 100644..100755 --- a/lang/python/examples/decryption-filter.py +++ b/lang/python/examples/decryption-filter.py @@ -16,10 +16,10 @@ # along with this program; if not, see <https://www.gnu.org/licenses/>. """A decryption filter -This demonstrates decryption using gpg3 in three lines of code. To +This demonstrates decryption using gpg in three lines of code. To be used like this: -./decryption-filter.py <message.gpg >message.plain +./decryption-filter.py < message.gpg > message.plain """ 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 diff --git a/lang/python/examples/testCMSgetkey.py b/lang/python/examples/testCMSgetkey.py index 9b5a5265..9b5a5265 100644..100755 --- a/lang/python/examples/testCMSgetkey.py +++ b/lang/python/examples/testCMSgetkey.py |