{"action":"created","issue":{"url":"https://api.github.com/repos/koalalorenzo/python-digitalocean/issues/80","labels_url":"https://api.github.com/repos/koalalorenzo/python-digitalocean/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/koalalorenzo/python-digitalocean/issues/80/comments","events_url":"https://api.github.com/repos/koalalorenzo/python-digitalocean/issues/80/events","html_url":"https://github.com/koalalorenzo/python-digitalocean/issues/80","id":53966970,"number":80,"title":"long and unicode not defined in python 3","user":{"login":"moyamo","id":5392783,"avatar_url":"https://avatars.githubusercontent.com/u/5392783?v=3","gravatar_id":"","url":"https://api.github.com/users/moyamo","html_url":"https://github.com/moyamo","followers_url":"https://api.github.com/users/moyamo/followers","following_url":"https://api.github.com/users/moyamo/following{/other_user}","gists_url":"https://api.github.com/users/moyamo/gists{/gist_id}","starred_url":"https://api.github.com/users/moyamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moyamo/subscriptions","organizations_url":"https://api.github.com/users/moyamo/orgs","repos_url":"https://api.github.com/users/moyamo/repos","events_url":"https://api.github.com/users/moyamo/events{/privacy}","received_events_url":"https://api.github.com/users/moyamo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-10T18:35:19Z","updated_at":"2015-01-10T18:46:26Z","closed_at":null,"body":"Since python 3 is supported, it should be noted that long and unicode are not defined in python 3 (u'string literal' still works). This is a problem for __get_ssh_key_id_or_fingerprint in Droplet. A possible solution would be\r\n\r\n           try:\r\n                inttype = [int, long]\r\n                strtype = [str, unicode]\r\n            except NameError:\r\n                inttype = [int]\r\n                strtype = [str]\r\n\r\nBy the way, many of the unit tests fail on python 3.\r\n\r\n   "},"comment":{"url":"https://api.github.com/repos/koalalorenzo/python-digitalocean/issues/comments/69466937","html_url":"https://github.com/koalalorenzo/python-digitalocean/issues/80#issuecomment-69466937","issue_url":"https://api.github.com/repos/koalalorenzo/python-digitalocean/issues/80","id":69466937,"user":{"login":"koalalorenzo","id":33528,"avatar_url":"https://avatars.githubusercontent.com/u/33528?v=3","gravatar_id":"","url":"https://api.github.com/users/koalalorenzo","html_url":"https://github.com/koalalorenzo","followers_url":"https://api.github.com/users/koalalorenzo/followers","following_url":"https://api.github.com/users/koalalorenzo/following{/other_user}","gists_url":"https://api.github.com/users/koalalorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/koalalorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koalalorenzo/subscriptions","organizations_url":"https://api.github.com/users/koalalorenzo/orgs","repos_url":"https://api.github.com/users/koalalorenzo/repos","events_url":"https://api.github.com/users/koalalorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/koalalorenzo/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T18:46:25Z","updated_at":"2015-01-10T18:46:25Z","body":"I noticed this now, I tested using py.test with the python 2. I will start working on it tomorrow, but feel free to open some pull requests if you need!"}}