{"action":"closed","issue":{"url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/96","labels_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/96/comments","events_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/96/events","html_url":"https://github.com/isislovecruft/python-gnupg/issues/96","id":56979170,"number":96,"title":"Don't pass --use-agent or --no-use-agent to gpg2","user":{"login":"garrettr","id":407302,"avatar_url":"https://avatars.githubusercontent.com/u/407302?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettr","html_url":"https://github.com/garrettr","followers_url":"https://api.github.com/users/garrettr/followers","following_url":"https://api.github.com/users/garrettr/following{/other_user}","gists_url":"https://api.github.com/users/garrettr/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettr/subscriptions","organizations_url":"https://api.github.com/users/garrettr/orgs","repos_url":"https://api.github.com/users/garrettr/repos","events_url":"https://api.github.com/users/garrettr/events{/privacy}","received_events_url":"https://api.github.com/users/garrettr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/isislovecruft/python-gnupg/labels/easy","name":"easy","color":"f7c6c7"},{"url":"https://api.github.com/repos/isislovecruft/python-gnupg/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"isislovecruft","id":907241,"avatar_url":"https://avatars.githubusercontent.com/u/907241?v=3","gravatar_id":"","url":"https://api.github.com/users/isislovecruft","html_url":"https://github.com/isislovecruft","followers_url":"https://api.github.com/users/isislovecruft/followers","following_url":"https://api.github.com/users/isislovecruft/following{/other_user}","gists_url":"https://api.github.com/users/isislovecruft/gists{/gist_id}","starred_url":"https://api.github.com/users/isislovecruft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isislovecruft/subscriptions","organizations_url":"https://api.github.com/users/isislovecruft/orgs","repos_url":"https://api.github.com/users/isislovecruft/repos","events_url":"https://api.github.com/users/isislovecruft/events{/privacy}","received_events_url":"https://api.github.com/users/isislovecruft/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/isislovecruft/python-gnupg/milestones/16","html_url":"https://github.com/isislovecruft/python-gnupg/milestones/2.0.1","labels_url":"https://api.github.com/repos/isislovecruft/python-gnupg/milestones/16/labels","id":1011847,"number":16,"title":"2.0.1","description":"","creator":{"login":"isislovecruft","id":907241,"avatar_url":"https://avatars.githubusercontent.com/u/907241?v=3","gravatar_id":"","url":"https://api.github.com/users/isislovecruft","html_url":"https://github.com/isislovecruft","followers_url":"https://api.github.com/users/isislovecruft/followers","following_url":"https://api.github.com/users/isislovecruft/following{/other_user}","gists_url":"https://api.github.com/users/isislovecruft/gists{/gist_id}","starred_url":"https://api.github.com/users/isislovecruft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isislovecruft/subscriptions","organizations_url":"https://api.github.com/users/isislovecruft/orgs","repos_url":"https://api.github.com/users/isislovecruft/repos","events_url":"https://api.github.com/users/isislovecruft/events{/privacy}","received_events_url":"https://api.github.com/users/isislovecruft/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":6,"state":"open","created_at":"2015-03-09T06:35:11Z","updated_at":"2015-03-09T08:48:39Z","due_on":"2015-03-01T00:00:00Z","closed_at":null},"comments":1,"created_at":"2015-02-09T01:39:09Z","updated_at":"2015-03-09T08:48:39Z","closed_at":"2015-03-09T08:48:39Z","body":"From `man gpg2`:\r\n\r\n```\r\n--use-agent\r\n\r\n--no-use-agent\r\n       This is dummy option. gpg2 always requires the agent.\r\n```\r\n\r\nThe `gnupg.GPG` constructor calls `_make_args`, which defaults to setting `--no-use-agent` if `use_agent` is not specified as a keyword argument to the constructor. When python-gnupg uses gpg2, this causes gpg2 to print a warning message *every time it is called*:\r\n\r\n```\r\nvagrant@development:~$ gpg2 --no-use-agent\r\ngpg: WARNING: \"--no-use-agent\" is an obsolete option - it has no effect\r\ngpg: Go ahead and type your message ...\r\n```\r\n\r\nThis message cannot be suppressed even by changing the `--debug-level` to `none`. When used in an automated fashion (such as in SecureDrop), this creates a lot of log noise.\r\n\r\nSince neither argument has an effect with gpg2, they should not be set when python-gnupg is used with gpg2."}}