{"action":"created","issue":{"url":"https://api.github.com/repos/itstool/itstool/issues/3","labels_url":"https://api.github.com/repos/itstool/itstool/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/itstool/itstool/issues/3/comments","events_url":"https://api.github.com/repos/itstool/itstool/issues/3/events","html_url":"https://github.com/itstool/itstool/pull/3","id":61926489,"number":3,"title":"Add python 3 support","user":{"login":"hsoft","id":505201,"avatar_url":"https://avatars.githubusercontent.com/u/505201?v=3","gravatar_id":"","url":"https://api.github.com/users/hsoft","html_url":"https://github.com/hsoft","followers_url":"https://api.github.com/users/hsoft/followers","following_url":"https://api.github.com/users/hsoft/following{/other_user}","gists_url":"https://api.github.com/users/hsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/hsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsoft/subscriptions","organizations_url":"https://api.github.com/users/hsoft/orgs","repos_url":"https://api.github.com/users/hsoft/repos","events_url":"https://api.github.com/users/hsoft/events{/privacy}","received_events_url":"https://api.github.com/users/hsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shaunix","id":3464614,"avatar_url":"https://avatars.githubusercontent.com/u/3464614?v=3","gravatar_id":"","url":"https://api.github.com/users/shaunix","html_url":"https://github.com/shaunix","followers_url":"https://api.github.com/users/shaunix/followers","following_url":"https://api.github.com/users/shaunix/following{/other_user}","gists_url":"https://api.github.com/users/shaunix/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunix/subscriptions","organizations_url":"https://api.github.com/users/shaunix/orgs","repos_url":"https://api.github.com/users/shaunix/repos","events_url":"https://api.github.com/users/shaunix/events{/privacy}","received_events_url":"https://api.github.com/users/shaunix/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-03-16T00:24:44Z","updated_at":"2015-10-29T18:57:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/itstool/itstool/pulls/3","html_url":"https://github.com/itstool/itstool/pull/3","diff_url":"https://github.com/itstool/itstool/pull/3.diff","patch_url":"https://github.com/itstool/itstool/pull/3.patch"},"body":"One day, like that, I decide I'll port one of the tools on my system to Python 3, so I did.\r\n\r\nThe result is at here. I would have pushed it to gitorious, but the website has just been bought by gitlab and it seemed like a bad place to push.\r\n\r\nAll tests except `test_IT_keep_entities_1` pass on both python 2.7 and python 3.3. The `test_IT_keep_entities_1` was already failing before my changes, I couldn't figure why.\r\n\r\nI've been very conservative with my changes and I didn't go beyond the strict necessary to make things work. As with most porting, the trickiest change is the `unicode/str/bytes` thing. I went with unicode-everything.\r\n\r\nAt two places, you'll see a `if not PY3: encode to utf8`, that's because strangely, libxml requires bytes when under python2 and *refuses* bytes when under python3...\r\n\r\nDoes this look like something you'd be willing to merge?"},"comment":{"url":"https://api.github.com/repos/itstool/itstool/issues/comments/152286842","html_url":"https://github.com/itstool/itstool/pull/3#issuecomment-152286842","issue_url":"https://api.github.com/repos/itstool/itstool/issues/3","id":152286842,"user":{"login":"jjardon","id":165288,"avatar_url":"https://avatars.githubusercontent.com/u/165288?v=3","gravatar_id":"","url":"https://api.github.com/users/jjardon","html_url":"https://github.com/jjardon","followers_url":"https://api.github.com/users/jjardon/followers","following_url":"https://api.github.com/users/jjardon/following{/other_user}","gists_url":"https://api.github.com/users/jjardon/gists{/gist_id}","starred_url":"https://api.github.com/users/jjardon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjardon/subscriptions","organizations_url":"https://api.github.com/users/jjardon/orgs","repos_url":"https://api.github.com/users/jjardon/repos","events_url":"https://api.github.com/users/jjardon/events{/privacy}","received_events_url":"https://api.github.com/users/jjardon/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T18:57:17Z","updated_at":"2015-10-29T18:57:17Z","body":"My system doesnt have python2 at all, so I built libxml2 against python3; itstool fails to build because a missing libxml2 python module"}}