diff options
Diffstat (limited to '')
| -rwxr-xr-x | lang/python/examples/genkey.py | 8 | 
1 files changed, 4 insertions, 4 deletions
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: [email protected] +Name-Email: [email protected]  Passphrase: Crypt0R0cks  Expire-Date: 2020-12-31  </GnupgKeyParms>  """ -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))  | 
