{"action":"opened","issue":{"url":"https://api.github.com/repos/ldx/python-iptables/issues/149","labels_url":"https://api.github.com/repos/ldx/python-iptables/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/ldx/python-iptables/issues/149/comments","events_url":"https://api.github.com/repos/ldx/python-iptables/issues/149/events","html_url":"https://github.com/ldx/python-iptables/issues/149","id":67577803,"number":149,"title":"doesn't build with python3","user":{"login":"arekm","id":50869,"avatar_url":"https://avatars.githubusercontent.com/u/50869?v=3","gravatar_id":"","url":"https://api.github.com/users/arekm","html_url":"https://github.com/arekm","followers_url":"https://api.github.com/users/arekm/followers","following_url":"https://api.github.com/users/arekm/following{/other_user}","gists_url":"https://api.github.com/users/arekm/gists{/gist_id}","starred_url":"https://api.github.com/users/arekm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arekm/subscriptions","organizations_url":"https://api.github.com/users/arekm/orgs","repos_url":"https://api.github.com/users/arekm/repos","events_url":"https://api.github.com/users/arekm/events{/privacy}","received_events_url":"https://api.github.com/users/arekm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-10T11:47:15Z","updated_at":"2015-04-10T11:47:15Z","closed_at":null,"body":"````\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 10, in <module>\r\n    execfile(\"iptc/version.py\")\r\nNameError: name 'execfile' is not defined\r\n`````\r\n\r\n2to3 open codes it like\r\n````\r\n--- a/setup.py  (original)\r\n+++ b/setup.py  (refactored)\r\n@@ -7,7 +7,7 @@\r\n # make pyflakes happy\r\n __pkgname__ = None\r\n __version__ = None\r\n-execfile(\"iptc/version.py\")\r\n+exec(compile(open(\"iptc/version.py\").read(), \"iptc/version.py\", 'exec'))\r\n\r\n # build/install python-iptables\r\n setup(\r\n\r\n````\r\n\r\nbut also things like\r\n````\r\n  File \"/usr/lib64/python3.4/site-packages/iptc/ip4tc.py\", line 1434\r\n    except IPTCError, e:\r\n                    ^\r\nSyntaxError: invalid syntax\r\n````"}}