aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/delkey.py
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/examples/delkey.py')
-rwxr-xr-xlang/python/examples/delkey.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/python/examples/delkey.py b/lang/python/examples/delkey.py
index 12510f3e..30b3145a 100755
--- a/lang/python/examples/delkey.py
+++ b/lang/python/examples/delkey.py
@@ -20,10 +20,11 @@
# It deletes keys for [email protected] generated by genkey.py script
from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
import gpg
+del absolute_import, print_function, unicode_literals
+
with gpg.Context() as c:
# Note: We must not modify the key store during iteration,
# therefore, we explicitly make a list.