aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/docs/GPGMEpythonHOWTOen.org
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-03-27 01:42:06 +0000
committerBen McGinnes <[email protected]>2018-03-27 01:42:06 +0000
commita2eedef630891397f8eccb5bb426a0728588bf41 (patch)
tree78d45debe674a5d5af0c4de9dd4675943cd539ba /lang/python/docs/GPGMEpythonHOWTOen.org
parentexample: key creation (diff)
downloadgpgme-a2eedef630891397f8eccb5bb426a0728588bf41.tar.gz
gpgme-a2eedef630891397f8eccb5bb426a0728588bf41.zip
doc: python bindings howto
* Fixed some minor PEP8 compliance issues in the key creation examples.
Diffstat (limited to 'lang/python/docs/GPGMEpythonHOWTOen.org')
-rw-r--r--lang/python/docs/GPGMEpythonHOWTOen.org12
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index 77ddba22..5e1e0abb 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -1079,8 +1079,8 @@
c.home_dir = "~/.gnupg-dm"
userid = "Danger Mouse <[email protected]>"
- dmkey = c.create_key(userid, algorithm = "rsa3072", expires_in = 31536000,
- sign = True, certify = True)
+ dmkey = c.create_key(userid, algorithm="rsa3072", expires_in=31536000,
+ sign=True, certify=True)
#+end_src
One thing to note here is the use of setting the =c.home_dir=
@@ -1173,8 +1173,8 @@
c.home_dir = "~/.gnupg-dm"
key = c.get_key(dmkey.fpr, secret = True)
- dmsub = c.create_subkey(key, algorithm = "rsa3072", expires_in = 15768000,
- encrypt = True)
+ dmsub = c.create_subkey(key, algorithm="rsa3072", expires_in=15768000,
+ encrypt=True)
#+end_src
As with the primary key, the results here can be checked with:
@@ -1278,8 +1278,8 @@
uid = "Danger Mouse <[email protected]>"
dmfpr = "177B7C25DB99745EE2EE13ED026D2F19E99E63AA"
- key = c.get_key(dmfpr, secret = True)
- c.key_sign(key, uids = uid, expires_in = 2764800)
+ key = c.get_key(dmfpr, secret=True)
+ c.key_sign(key, uids=uid, expires_in=2764800)
#+end_src