{"action":"created","issue":{"url":"https://api.github.com/repos/PyCQA/pylint/issues/1986","repository_url":"https://api.github.com/repos/PyCQA/pylint","labels_url":"https://api.github.com/repos/PyCQA/pylint/issues/1986/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/pylint/issues/1986/comments","events_url":"https://api.github.com/repos/PyCQA/pylint/issues/1986/events","html_url":"https://github.com/PyCQA/pylint/issues/1986","id":310231837,"node_id":"MDU6SXNzdWUzMTAyMzE4Mzc=","number":1986,"title":"Raise an exception is maxversion is not a tuple","user":{"login":"PCManticore","id":448166,"node_id":"MDQ6VXNlcjQ0ODE2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/448166?v=4","gravatar_id":"","url":"https://api.github.com/users/PCManticore","html_url":"https://github.com/PCManticore","followers_url":"https://api.github.com/users/PCManticore/followers","following_url":"https://api.github.com/users/PCManticore/following{/other_user}","gists_url":"https://api.github.com/users/PCManticore/gists{/gist_id}","starred_url":"https://api.github.com/users/PCManticore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCManticore/subscriptions","organizations_url":"https://api.github.com/users/PCManticore/orgs","repos_url":"https://api.github.com/users/PCManticore/repos","events_url":"https://api.github.com/users/PCManticore/events{/privacy}","received_events_url":"https://api.github.com/users/PCManticore/received_events","type":"User","site_admin":false},"labels":[{"id":419686299,"node_id":"MDU6TGFiZWw0MTk2ODYyOTk=","url":"https://api.github.com/repos/PyCQA/pylint/labels/contributor%20friendly","name":"contributor friendly","color":"0e8a16","default":false},{"id":297274517,"node_id":"MDU6TGFiZWwyOTcyNzQ1MTc=","url":"https://api.github.com/repos/PyCQA/pylint/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-31T10:48:11Z","updated_at":"2018-08-01T07:03:04Z","closed_at":"2018-08-01T07:03:04Z","author_association":"MEMBER","body":"### Steps to reproduce\r\n1. Create a new pylint checker and set `maxversion` for a message to something else than a tuple, say a string.\r\n2. Enable the checker and see that the message is never emitted.\r\n\r\n### Current behavior\r\nThe message is never emitted.\r\n\r\n### Expected behavior\r\nWe should raise an exception here. What is happening is that on Python 2 we can compare objects of different types, while on Python 3 this fails with an exception. In this case we were comparing a string to a tuple (sys.version_info), resulting in the condition to be false all the time.\r\n\r\n### pylint --version output\r\n1.8 and master, but more important in 1.8.\r\n"},"comment":{"url":"https://api.github.com/repos/PyCQA/pylint/issues/comments/409471427","html_url":"https://github.com/PyCQA/pylint/issues/1986#issuecomment-409471427","issue_url":"https://api.github.com/repos/PyCQA/pylint/issues/1986","id":409471427,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQ3MTQyNw==","user":{"login":"PCManticore","id":448166,"node_id":"MDQ6VXNlcjQ0ODE2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/448166?v=4","gravatar_id":"","url":"https://api.github.com/users/PCManticore","html_url":"https://github.com/PCManticore","followers_url":"https://api.github.com/users/PCManticore/followers","following_url":"https://api.github.com/users/PCManticore/following{/other_user}","gists_url":"https://api.github.com/users/PCManticore/gists{/gist_id}","starred_url":"https://api.github.com/users/PCManticore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCManticore/subscriptions","organizations_url":"https://api.github.com/users/PCManticore/orgs","repos_url":"https://api.github.com/users/PCManticore/repos","events_url":"https://api.github.com/users/PCManticore/events{/privacy}","received_events_url":"https://api.github.com/users/PCManticore/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T07:03:04Z","updated_at":"2018-08-01T07:03:04Z","author_association":"MEMBER","body":"Given that we're on Python 3 now, it's going to error when comparing objects of different types anyway."}}
{"actor":{"display_login":"PCManticore"}}