aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/assuan.py
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/examples/assuan.py')
-rw-r--r--lang/python/examples/assuan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/examples/assuan.py b/lang/python/examples/assuan.py
index f02cd166..dd42ad40 100644
--- a/lang/python/examples/assuan.py
+++ b/lang/python/examples/assuan.py
@@ -22,7 +22,7 @@ del absolute_import, print_function, unicode_literals
import gpg
-with gpg.Context(protocol=gpg.constants.PROTOCOL_ASSUAN) as c:
+with gpg.Context(protocol=gpg.constants.protocol.ASSUAN) as c:
# Invoke the pinentry to get a confirmation.
err = c.assuan_transact(['GET_CONFIRMATION', 'Hello there'])
print("You chose {}.".format("cancel" if err else "ok"))