doc: python bindings howto
authorBen McGinnes <ben@adversary.org>
Tue, 27 Mar 2018 01:42:06 +0000 (12:42 +1100)
committerBen McGinnes <ben@adversary.org>
Tue, 27 Mar 2018 01:42:06 +0000 (12:42 +1100)
* Fixed some minor PEP8 compliance issues in the key creation examples.

lang/python/docs/GPGMEpythonHOWTOen.org

index 77ddba2..5e1e0ab 100644 (file)
      c.home_dir = "~/.gnupg-dm"
      userid = "Danger Mouse <dm@secret.example.net>"
 
-     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=
      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:
      uid = "Danger Mouse <dm@secret.example.net>"
 
      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