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/decryption-filter.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/decryption-filter.py')
-rw-r--r-- | lang/python/examples/decryption-filter.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/python/examples/decryption-filter.py b/lang/python/examples/decryption-filter.py index 987dfd13..4d99330b 100644 --- a/lang/python/examples/decryption-filter.py +++ b/lang/python/examples/decryption-filter.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2016 g10 Code GmbH +# Copyright (C) 2016, 2018 g10 Code GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. - """A decryption filter This demonstrates decryption using gpg3 in three lines of code. To @@ -25,8 +24,10 @@ be used like this: """ 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 + gpg.Context().decrypt(sys.stdin, sink=sys.stdout) |