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/genkey.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lang/python/examples/genkey.py') diff --git a/lang/python/examples/genkey.py b/lang/python/examples/genkey.py index ee70303d..a043500e 100755 --- a/lang/python/examples/genkey.py +++ b/lang/python/examples/genkey.py @@ -20,7 +20,7 @@ from __future__ import absolute_import, print_function, unicode_literals del absolute_import, print_function, unicode_literals -import pyme +import gpg # This is the example from the GPGME manual. @@ -31,14 +31,14 @@ Subkey-Type: RSA Subkey-Length: 2048 Name-Real: Joe Tester Name-Comment: with stupid passphrase -Name-Email: joe+pyme@example.org +Name-Email: joe+gpg@example.org Passphrase: Crypt0R0cks Expire-Date: 2020-12-31 """ -with pyme.Context() as c: - c.set_progress_cb(pyme.callbacks.progress_stdout) +with gpg.Context() as c: + c.set_progress_cb(gpg.callbacks.progress_stdout) c.op_genkey(parms, None, None) print("Generated key with fingerprint {0}.".format( c.op_genkey_result().fpr)) -- cgit v1.2.3