aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/t-trustlist.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-08-18 10:29:14 +0000
committerBen McGinnes <[email protected]>2018-08-18 10:29:14 +0000
commit5facba45c83f7daaacc49e66306e13a35aeb74be (patch)
treebaf659036cb95f3d5c75babdc242a4629c864616 /lang/python/tests/t-trustlist.py
parentPython bindings examples: PEP8 conpliance (diff)
downloadgpgme-5facba45c83f7daaacc49e66306e13a35aeb74be.tar.gz
gpgme-5facba45c83f7daaacc49e66306e13a35aeb74be.zip
Python bindings tests: Near PEP8 compliance
* PEP8 compliance for the vast majoeity of the tests.
Diffstat (limited to 'lang/python/tests/t-trustlist.py')
-rwxr-xr-xlang/python/tests/t-trustlist.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/lang/python/tests/t-trustlist.py b/lang/python/tests/t-trustlist.py
index 89524bb5..ffa0b96d 100755
--- a/lang/python/tests/t-trustlist.py
+++ b/lang/python/tests/t-trustlist.py
@@ -18,18 +18,21 @@
# License 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 gpg
import support
-_ = support # to appease pyflakes.
+_ = support # to appease pyflakes.
+
+del absolute_import, print_function, unicode_literals
c = gpg.Context()
+
def dump_item(item):
- print("l={} k={} t={} o={} v={} u={}".format(
- item.level, item.keyid, item.type, item.owner_trust,
- item.validity, item.name))
+ print("l={} k={} t={} o={} v={} u={}".format(item.level, item.keyid,
+ item.type, item.owner_trust,
+ item.validity, item.name))
+
c.op_trustlist_start("alice", 0)
while True: