aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-05-10 11:30:30 +0000
committerJustus Winter <[email protected]>2016-05-10 11:30:30 +0000
commitaade53a12b9716997684b872bc2ac87229f73fb3 (patch)
tree3b7765c59ff99c7929a3e08053bcd2f301a1ceec /lang/python/examples
parentpython: Drop Debian packaging. (diff)
downloadgpgme-aade53a12b9716997684b872bc2ac87229f73fb3.tar.gz
gpgme-aade53a12b9716997684b872bc2ac87229f73fb3.zip
python: Delete trailing whitespace.
-- Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/examples')
-rwxr-xr-xlang/python/examples/encrypt-to-all.py2
-rwxr-xr-xlang/python/examples/signverify.py2
-rw-r--r--lang/python/examples/t-edit.py2
-rw-r--r--lang/python/examples/testCMSgetkey.py4
-rwxr-xr-xlang/python/examples/verifydetails.py2
5 files changed, 4 insertions, 8 deletions
diff --git a/lang/python/examples/encrypt-to-all.py b/lang/python/examples/encrypt-to-all.py
index 8f9d2500..c890df4f 100755
--- a/lang/python/examples/encrypt-to-all.py
+++ b/lang/python/examples/encrypt-to-all.py
@@ -54,7 +54,7 @@ for key in c.op_keylist_all(None, 0):
(keyid, can_encrypt and "enabled" or "disabled"))
except UnicodeEncodeError as e:
print(e)
-
+
if valid:
names.append(key)
else:
diff --git a/lang/python/examples/signverify.py b/lang/python/examples/signverify.py
index f8804ca9..7194157b 100755
--- a/lang/python/examples/signverify.py
+++ b/lang/python/examples/signverify.py
@@ -43,7 +43,7 @@ if not c.signers_enum(0):
passlist = {
b"<[email protected]>": b"Crypt0R0cks"
}
-
+
# callback will return password based on the e-mail listed in the hint.
c.set_passphrase_cb(lambda x,y,z: passlist[x[x.rindex("<"):]])
diff --git a/lang/python/examples/t-edit.py b/lang/python/examples/t-edit.py
index 6c533429..5553190c 100644
--- a/lang/python/examples/t-edit.py
+++ b/lang/python/examples/t-edit.py
@@ -32,7 +32,7 @@ class KeyEditor:
out.seek(0,0)
print(out.read(), end=' ')
print("[-- Code: %d, %s --]" % (status, args))
-
+
if args == "keyedit.prompt":
result = self.steps[self.step]
self.step += 1
diff --git a/lang/python/examples/testCMSgetkey.py b/lang/python/examples/testCMSgetkey.py
index 53fdef77..7c953012 100644
--- a/lang/python/examples/testCMSgetkey.py
+++ b/lang/python/examples/testCMSgetkey.py
@@ -22,7 +22,7 @@ from pyme.constants import protocol
def printgetkeyresults(keyfpr):
"""Run gpgme_get_key()."""
- # gpgme_check_version() necessary for initialisation according to
+ # gpgme_check_version() necessary for initialisation according to
# gogme 1.1.6 and this is not done automatically in pyme-0.7.0
print("gpgme version:", core.check_version(None))
c = core.Context()
@@ -45,5 +45,3 @@ def main():
if __name__ == "__main__":
main()
-
-
diff --git a/lang/python/examples/verifydetails.py b/lang/python/examples/verifydetails.py
index 0d47ba54..a8d840e7 100755
--- a/lang/python/examples/verifydetails.py
+++ b/lang/python/examples/verifydetails.py
@@ -96,5 +96,3 @@ def main():
if __name__ == "__main__":
main()
-
-