{"action":"closed","issue":{"url":"https://api.github.com/repos/coala/coala/issues/5412","repository_url":"https://api.github.com/repos/coala/coala","labels_url":"https://api.github.com/repos/coala/coala/issues/5412/labels{/name}","comments_url":"https://api.github.com/repos/coala/coala/issues/5412/comments","events_url":"https://api.github.com/repos/coala/coala/issues/5412/events","html_url":"https://github.com/coala/coala/issues/5412","id":316491079,"number":5412,"title":"linter/strip_ansi: Error when using `use_stderr=True` and `use_stdout=True`","user":{"login":"Makman2","id":6023916,"avatar_url":"https://avatars3.githubusercontent.com/u/6023916?v=4","gravatar_id":"","url":"https://api.github.com/users/Makman2","html_url":"https://github.com/Makman2","followers_url":"https://api.github.com/users/Makman2/followers","following_url":"https://api.github.com/users/Makman2/following{/other_user}","gists_url":"https://api.github.com/users/Makman2/gists{/gist_id}","starred_url":"https://api.github.com/users/Makman2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Makman2/subscriptions","organizations_url":"https://api.github.com/users/Makman2/orgs","repos_url":"https://api.github.com/users/Makman2/repos","events_url":"https://api.github.com/users/Makman2/events{/privacy}","received_events_url":"https://api.github.com/users/Makman2/received_events","type":"User","site_admin":false},"labels":[{"id":652042275,"url":"https://api.github.com/repos/coala/coala/labels/area/lintbears","name":"area/lintbears","color":"ededed","default":false},{"id":308852190,"url":"https://api.github.com/repos/coala/coala/labels/difficulty/low","name":"difficulty/low","color":"207de5","default":false},{"id":107614326,"url":"https://api.github.com/repos/coala/coala/labels/importance/high","name":"importance/high","color":"eb6420","default":false},{"id":99776607,"url":"https://api.github.com/repos/coala/coala/labels/type/bug","name":"type/bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":{"login":"Makman2","id":6023916,"avatar_url":"https://avatars3.githubusercontent.com/u/6023916?v=4","gravatar_id":"","url":"https://api.github.com/users/Makman2","html_url":"https://github.com/Makman2","followers_url":"https://api.github.com/users/Makman2/followers","following_url":"https://api.github.com/users/Makman2/following{/other_user}","gists_url":"https://api.github.com/users/Makman2/gists{/gist_id}","starred_url":"https://api.github.com/users/Makman2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Makman2/subscriptions","organizations_url":"https://api.github.com/users/Makman2/orgs","repos_url":"https://api.github.com/users/Makman2/repos","events_url":"https://api.github.com/users/Makman2/events{/privacy}","received_events_url":"https://api.github.com/users/Makman2/received_events","type":"User","site_admin":false},"assignees":[{"login":"Makman2","id":6023916,"avatar_url":"https://avatars3.githubusercontent.com/u/6023916?v=4","gravatar_id":"","url":"https://api.github.com/users/Makman2","html_url":"https://github.com/Makman2","followers_url":"https://api.github.com/users/Makman2/followers","following_url":"https://api.github.com/users/Makman2/following{/other_user}","gists_url":"https://api.github.com/users/Makman2/gists{/gist_id}","starred_url":"https://api.github.com/users/Makman2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Makman2/subscriptions","organizations_url":"https://api.github.com/users/Makman2/orgs","repos_url":"https://api.github.com/users/Makman2/repos","events_url":"https://api.github.com/users/Makman2/events{/privacy}","received_events_url":"https://api.github.com/users/Makman2/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-04-21T13:16:06Z","updated_at":"2018-04-21T14:40:42Z","closed_at":"2018-04-21T14:40:42Z","author_association":"OWNER","body":"The feature added in https://github.com/coala/coala/issues/5281 has a flaw when using the options `use_stderr=True` and `use_stdout=True` together:\r\n```python\r\noutput = tuple(compress(\r\n    output,\r\n    (options['use_stdout'], options['use_stderr'])))\r\nif len(output) == 1:\r\n    output = output[\r\n\r\nif options['strip_ansi']:\r\n    output = strip_ansi(output)\r\n```\r\nIn that case `output` becomes a tuple and `strip_ansi` will fail:\r\n```\r\nTypeError: expected string or bytes-like object\r\n```"}}
{"actor":{"display_login":"gitmate-bot"}}