{"action":"created","issue":{"url":"https://api.github.com/repos/validator/validator/issues/80","labels_url":"https://api.github.com/repos/validator/validator/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/validator/validator/issues/80/comments","events_url":"https://api.github.com/repos/validator/validator/issues/80/events","html_url":"https://github.com/validator/validator/issues/80","id":64752597,"number":80,"title":"Changed output from validator.nu?","user":{"login":"153957","id":1433682,"avatar_url":"https://avatars.githubusercontent.com/u/1433682?v=3","gravatar_id":"","url":"https://api.github.com/users/153957","html_url":"https://github.com/153957","followers_url":"https://api.github.com/users/153957/followers","following_url":"https://api.github.com/users/153957/following{/other_user}","gists_url":"https://api.github.com/users/153957/gists{/gist_id}","starred_url":"https://api.github.com/users/153957/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/153957/subscriptions","organizations_url":"https://api.github.com/users/153957/orgs","repos_url":"https://api.github.com/users/153957/repos","events_url":"https://api.github.com/users/153957/events{/privacy}","received_events_url":"https://api.github.com/users/153957/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-27T12:20:57Z","updated_at":"2015-03-28T07:31:16Z","closed_at":null,"body":"I use the html5check script, which uses validator.nu, to validate the code for several of my projects.\r\nThe last couple of days the test script stopped working. Has the output from validator.nu changed in the last couple of days? I have also reported this issue (mozilla/html5-lint#15) in the repo of the html5check script, however that script has not changed, so the 'cause' of the issues is probably a change in validator.nu ."},"comment":{"url":"https://api.github.com/repos/validator/validator/issues/comments/87185891","html_url":"https://github.com/validator/validator/issues/80#issuecomment-87185891","issue_url":"https://api.github.com/repos/validator/validator/issues/80","id":87185891,"user":{"login":"153957","id":1433682,"avatar_url":"https://avatars.githubusercontent.com/u/1433682?v=3","gravatar_id":"","url":"https://api.github.com/users/153957","html_url":"https://github.com/153957","followers_url":"https://api.github.com/users/153957/followers","following_url":"https://api.github.com/users/153957/following{/other_user}","gists_url":"https://api.github.com/users/153957/gists{/gist_id}","starred_url":"https://api.github.com/users/153957/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/153957/subscriptions","organizations_url":"https://api.github.com/users/153957/orgs","repos_url":"https://api.github.com/users/153957/repos","events_url":"https://api.github.com/users/153957/events{/privacy}","received_events_url":"https://api.github.com/users/153957/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T07:31:16Z","updated_at":"2015-03-28T07:31:16Z","body":"I specified the errors in more detail in this issue at html5-lint: mozilla/html5-lint#15\r\nYes, I am using the `-g` (and `-eh`) option.\r\n\r\nApperantly the `response` variable in the script is no longer automatically an interator over the lines.\r\n```\r\nTraceback (most recent call last):\r\n  File \"./html5check.py\", line 232, in <module>\r\n    for line in response:\r\nTypeError: iteration over non-sequence\r\n```\r\nI was able to get the script working again with a small modification to [that for-loop](https://github.com/mozilla/html5-lint/blob/master/html5check.py#L232) causing the error:\r\n```\r\nfor line in response.read().split('\\n'):\r\n  if line:\r\n      sys.stdout.write(quotedName)\r\n      sys.stdout.write(line + '\\n')\r\n```\r\n\r\nI use the `-g` option to get the output as separate lines, because I want to filter the output.\r\nMy usage of the script (on Travis to check my websites):\r\n```\r\nCHECK=$(for file in *.html; do python ../html5check.py -geh $file; done;)\r\nif [[ ! -z $(echo \"$CHECK\" | grep -vE 'index_|iframe') ]]; then echo \"$CHECK\"; exit 1; fi;\r\n```\r\n\r\nThe script itself does not seem to do any post processing to the actual content of the response.\r\nThe latest version of the script from html5-lint also works without the `-g` option."}}