From 2fac017618a76882605125b05ff1f7393fe99860 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 28 Oct 2016 16:45:49 -0400 Subject: python: Rename Python module from PyME to gpg. This follows weeks of discussion on the gnupg-devel mailing list. Hopefully it will make it easier for people using Python to use GnuPG in the future. Signed-off-by: Daniel Kahn Gillmor --- lang/python/examples/signverify.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lang/python/examples/signverify.py') diff --git a/lang/python/examples/signverify.py b/lang/python/examples/signverify.py index 03bc0a64..5870ca95 100755 --- a/lang/python/examples/signverify.py +++ b/lang/python/examples/signverify.py @@ -17,18 +17,18 @@ # along with this program; if not, see . # Sample of unattended signing/verifying of a message. -# It uses keys for joe+pyme@example.org generated by genkey.py script +# It uses keys for joe+gpg@example.org generated by genkey.py script from __future__ import absolute_import, print_function, unicode_literals del absolute_import, print_function, unicode_literals import sys -import pyme -from pyme.constants.sig import mode +import gpg +from gpg.constants.sig import mode -user = "joe+pyme" +user = "joe+gpg" -with pyme.Context(pinentry_mode=pyme.constants.PINENTRY_MODE_LOOPBACK) as c: +with gpg.Context(pinentry_mode=gpg.constants.PINENTRY_MODE_LOOPBACK) as c: keys = list(c.keylist(user)) if len(keys) == 0: sys.exit("No key matching {}.".format(user)) -- cgit v1.2.3