Home GnuPG
Diffusion GPGME 30ddb2cabcd6

python: gpg.Context.decrypt verify_sigs and sink_result are bools
30ddb2cabcd6Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: gpg.Context.decrypt verify_sigs and sink_result are bools

Both of these function-internal variables are never used for anything
other than a binary state. Implement them as the booleans they are.
Otherwise, casual readers of the code might think that they're
supposed to represent something other than a flag (e.g. "verify_sigs"
could mean "the signatures to verify", and "sink_result" could mean
"the place where we sink the result").

  • Signed-Off-By: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Nov 28 2018, 7:51 AM
Parents
rM9a1903cc4292: python: clarify documentation for verify argument for Context.decrypt()
Branches
Unknown
Tags
Unknown