{"action":"opened","issue":{"url":"https://api.github.com/repos/erikrose/blessings/issues/95","labels_url":"https://api.github.com/repos/erikrose/blessings/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/erikrose/blessings/issues/95/comments","events_url":"https://api.github.com/repos/erikrose/blessings/issues/95/events","html_url":"https://github.com/erikrose/blessings/issues/95","id":59610292,"number":95,"title":"remove documentation about speciality of setupterm's descriptor, use os.devnull","user":{"login":"jquast","id":972584,"avatar_url":"https://avatars.githubusercontent.com/u/972584?v=3","gravatar_id":"","url":"https://api.github.com/users/jquast","html_url":"https://github.com/jquast","followers_url":"https://api.github.com/users/jquast/followers","following_url":"https://api.github.com/users/jquast/following{/other_user}","gists_url":"https://api.github.com/users/jquast/gists{/gist_id}","starred_url":"https://api.github.com/users/jquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquast/subscriptions","organizations_url":"https://api.github.com/users/jquast/orgs","repos_url":"https://api.github.com/users/jquast/repos","events_url":"https://api.github.com/users/jquast/events{/privacy}","received_events_url":"https://api.github.com/users/jquast/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erikrose/blessings/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-03T08:33:35Z","updated_at":"2015-03-03T08:33:35Z","closed_at":null,"body":"It's actually perfectly fine to call ``curses.setupterm(kind, open(os.devnull).fileno())``.\r\n\r\nMore importantly, this removes a chunk of documentation and comments, such as:\r\n```\r\n            Terminal initialization sequences will be sent to ``stream`` if it\r\n            has a file descriptor and to ``sys.__stdout__`` otherwise. (``setupterm()`` demands to send them\r\n            somewhere, and stdout is probably where the output is ultimately\r\n            headed. If not, stderr is probably bound to the same terminal.)\r\n```\r\n\r\nand\r\n\r\n```\r\n            # (...) Explicit args make setupterm()\r\n            # work even when -s is passed to nosetests. Lean toward sending\r\n            # init sequences to the stream if it has a file descriptor, and\r\n            # send them to stdout as a fallback, since they have to go\r\n            # somewhere.\r\n```"}}