{"action":"created","issue":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/165","labels_url":"https://api.github.com/repos/nvbn/thefuck/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/nvbn/thefuck/issues/165/comments","events_url":"https://api.github.com/repos/nvbn/thefuck/issues/165/events","html_url":"https://github.com/nvbn/thefuck/pull/165","id":73512893,"number":165,"title":"rules(pacman): make it compatible with Python 2","user":{"login":"scorphus","id":2112697,"avatar_url":"https://avatars.githubusercontent.com/u/2112697?v=3","gravatar_id":"","url":"https://api.github.com/users/scorphus","html_url":"https://github.com/scorphus","followers_url":"https://api.github.com/users/scorphus/followers","following_url":"https://api.github.com/users/scorphus/following{/other_user}","gists_url":"https://api.github.com/users/scorphus/gists{/gist_id}","starred_url":"https://api.github.com/users/scorphus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorphus/subscriptions","organizations_url":"https://api.github.com/users/scorphus/orgs","repos_url":"https://api.github.com/users/scorphus/repos","events_url":"https://api.github.com/users/scorphus/events{/privacy}","received_events_url":"https://api.github.com/users/scorphus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T04:42:27Z","updated_at":"2015-05-06T11:13:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nvbn/thefuck/pulls/165","html_url":"https://github.com/nvbn/thefuck/pull/165","diff_url":"https://github.com/nvbn/thefuck/pull/165.diff","patch_url":"https://github.com/nvbn/thefuck/pull/165.patch"},"body":"Tests are on the way. As soon as I can."},"comment":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/comments/99420451","html_url":"https://github.com/nvbn/thefuck/pull/165#issuecomment-99420451","issue_url":"https://api.github.com/repos/nvbn/thefuck/issues/165","id":99420451,"user":{"login":"nvbn","id":1114542,"avatar_url":"https://avatars.githubusercontent.com/u/1114542?v=3","gravatar_id":"","url":"https://api.github.com/users/nvbn","html_url":"https://github.com/nvbn","followers_url":"https://api.github.com/users/nvbn/followers","following_url":"https://api.github.com/users/nvbn/following{/other_user}","gists_url":"https://api.github.com/users/nvbn/gists{/gist_id}","starred_url":"https://api.github.com/users/nvbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvbn/subscriptions","organizations_url":"https://api.github.com/users/nvbn/orgs","repos_url":"https://api.github.com/users/nvbn/repos","events_url":"https://api.github.com/users/nvbn/events{/privacy}","received_events_url":"https://api.github.com/users/nvbn/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T11:13:38Z","updated_at":"2015-05-06T11:13:38Z","body":"Maybe it's better to not monkeypatch subprocess module and just use:\r\n```python\r\nDEVNULL = open(os.devnull, 'w')\r\n```\r\nIt works on both python versions.\r\nAlso, `FileNotFoundError` is inherited from `OSError`, so maybe just handling `OSError` will be ok."}}