{"action":"created","issue":{"url":"https://api.github.com/repos/html5lib/html5lib-python/issues/184","labels_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/184/comments","events_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/184/events","html_url":"https://github.com/html5lib/html5lib-python/pull/184","id":69155527,"number":184,"title":"Update html5parser.py","user":{"login":"ta5ae","id":1619343,"avatar_url":"https://avatars.githubusercontent.com/u/1619343?v=3","gravatar_id":"","url":"https://api.github.com/users/ta5ae","html_url":"https://github.com/ta5ae","followers_url":"https://api.github.com/users/ta5ae/followers","following_url":"https://api.github.com/users/ta5ae/following{/other_user}","gists_url":"https://api.github.com/users/ta5ae/gists{/gist_id}","starred_url":"https://api.github.com/users/ta5ae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta5ae/subscriptions","organizations_url":"https://api.github.com/users/ta5ae/orgs","repos_url":"https://api.github.com/users/ta5ae/repos","events_url":"https://api.github.com/users/ta5ae/events{/privacy}","received_events_url":"https://api.github.com/users/ta5ae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T15:01:20Z","updated_at":"2015-06-23T09:21:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/html5lib/html5lib-python/pulls/184","html_url":"https://github.com/html5lib/html5lib-python/pull/184","diff_url":"https://github.com/html5lib/html5lib-python/pull/184.diff","patch_url":"https://github.com/html5lib/html5lib-python/pull/184.patch"},"body":"Adding an initial definition of the new_phase variable as recently an application I work on managed to generate this error: a local variable 'new_phase' referenced before assignment."},"comment":{"url":"https://api.github.com/repos/html5lib/html5lib-python/issues/comments/114417418","html_url":"https://github.com/html5lib/html5lib-python/pull/184#issuecomment-114417418","issue_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/184","id":114417418,"user":{"login":"ta5ae","id":1619343,"avatar_url":"https://avatars.githubusercontent.com/u/1619343?v=3","gravatar_id":"","url":"https://api.github.com/users/ta5ae","html_url":"https://github.com/ta5ae","followers_url":"https://api.github.com/users/ta5ae/followers","following_url":"https://api.github.com/users/ta5ae/following{/other_user}","gists_url":"https://api.github.com/users/ta5ae/gists{/gist_id}","starred_url":"https://api.github.com/users/ta5ae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta5ae/subscriptions","organizations_url":"https://api.github.com/users/ta5ae/orgs","repos_url":"https://api.github.com/users/ta5ae/repos","events_url":"https://api.github.com/users/ta5ae/events{/privacy}","received_events_url":"https://api.github.com/users/ta5ae/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T09:21:26Z","updated_at":"2015-06-23T09:21:26Z","body":"Sorry for the late reply, I presumed the calling code had caused the error.  Here is a snapshot of the error log:\r\n\r\nLocal Vars\r\n\r\nVariable | Value\r\n-------- | -----\r\ncontainer | u'div'\r\nstream | u'I keep others at a distance'\r\nuseChardet | True\r\nencoding | None\r\nself | &lt;html5lib.html5parser.HTMLParser object at 0x7fee33ec4810&gt;\r\ninnerHTML | True\r\nparseMeta | True\r\nkwargs | {}\r\n...lib/python2.7/site-packages/html5lib/html5parser.py in reset\r\n            self.resetInsertionMode()\t"}}