{"action":"created","issue":{"url":"https://api.github.com/repos/bcoe/imaplib2/issues/12","labels_url":"https://api.github.com/repos/bcoe/imaplib2/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bcoe/imaplib2/issues/12/comments","events_url":"https://api.github.com/repos/bcoe/imaplib2/issues/12/events","html_url":"https://github.com/bcoe/imaplib2/pull/12","id":87894275,"number":12,"title":"Use py_modules instead of packages and other updates","user":{"login":"fmalina","id":10356928,"avatar_url":"https://avatars.githubusercontent.com/u/10356928?v=3","gravatar_id":"","url":"https://api.github.com/users/fmalina","html_url":"https://github.com/fmalina","followers_url":"https://api.github.com/users/fmalina/followers","following_url":"https://api.github.com/users/fmalina/following{/other_user}","gists_url":"https://api.github.com/users/fmalina/gists{/gist_id}","starred_url":"https://api.github.com/users/fmalina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmalina/subscriptions","organizations_url":"https://api.github.com/users/fmalina/orgs","repos_url":"https://api.github.com/users/fmalina/repos","events_url":"https://api.github.com/users/fmalina/events{/privacy}","received_events_url":"https://api.github.com/users/fmalina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-13T00:50:46Z","updated_at":"2015-06-15T20:32:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bcoe/imaplib2/pulls/12","html_url":"https://github.com/bcoe/imaplib2/pull/12","diff_url":"https://github.com/bcoe/imaplib2/pull/12.diff","patch_url":"https://github.com/bcoe/imaplib2/pull/12.patch"},"body":"This should solve failing imports such as `from imaplib2 import IMAP4_SSL`."},"comment":{"url":"https://api.github.com/repos/bcoe/imaplib2/issues/comments/112199953","html_url":"https://github.com/bcoe/imaplib2/pull/12#issuecomment-112199953","issue_url":"https://api.github.com/repos/bcoe/imaplib2/issues/12","id":112199953,"user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T20:32:55Z","updated_at":"2015-06-15T20:32:55Z","body":"I've found the issue here, It's not because of the \"import *\" It's because in python 3\r\n\r\nOn python 2 the default is to relative import so:\r\n```python\r\n# impalib2/__init__.py\r\nfrom imaplib2 import *\r\n```\r\n\r\nimports 'imaplib2/imaplib2.py', however on python 3 it imports 'imaplib2/__init__.py'\r\n\r\nPlease see #13 for the minimal fix and tests."}}