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/sign.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/sign.py')
-rwxr-xr-x | lang/python/examples/sign.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/python/examples/sign.py b/lang/python/examples/sign.py index 16c2256a..5b90b4b8 100755 --- a/lang/python/examples/sign.py +++ b/lang/python/examples/sign.py @@ -17,12 +17,13 @@ # along with this program; if not, see <http://www.gnu.org/licenses/>. from __future__ import absolute_import, print_function, unicode_literals -del absolute_import, print_function, unicode_literals import sys import gpg from gpg.constants.sig import mode +del absolute_import, print_function, unicode_literals + with gpg.Context() as c: signed, _ = c.sign(b"Test message", mode=mode.CLEAR) sys.stdout.buffer.write(signed) |