{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/build-relengapi/issues/291","labels_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/291/comments","events_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/291/events","html_url":"https://github.com/mozilla/build-relengapi/issues/291","id":91100268,"number":291,"title":"Inadequate use of `__import__`","user":{"login":"djmitche","id":28673,"avatar_url":"https://avatars.githubusercontent.com/u/28673?v=3","gravatar_id":"","url":"https://api.github.com/users/djmitche","html_url":"https://github.com/djmitche","followers_url":"https://api.github.com/users/djmitche/followers","following_url":"https://api.github.com/users/djmitche/following{/other_user}","gists_url":"https://api.github.com/users/djmitche/gists{/gist_id}","starred_url":"https://api.github.com/users/djmitche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmitche/subscriptions","organizations_url":"https://api.github.com/users/djmitche/orgs","repos_url":"https://api.github.com/users/djmitche/repos","events_url":"https://api.github.com/users/djmitche/events{/privacy}","received_events_url":"https://api.github.com/users/djmitche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"djmitche","id":28673,"avatar_url":"https://avatars.githubusercontent.com/u/28673?v=3","gravatar_id":"","url":"https://api.github.com/users/djmitche","html_url":"https://github.com/djmitche","followers_url":"https://api.github.com/users/djmitche/followers","following_url":"https://api.github.com/users/djmitche/following{/other_user}","gists_url":"https://api.github.com/users/djmitche/gists{/gist_id}","starred_url":"https://api.github.com/users/djmitche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmitche/subscriptions","organizations_url":"https://api.github.com/users/djmitche/orgs","repos_url":"https://api.github.com/users/djmitche/repos","events_url":"https://api.github.com/users/djmitche/events{/privacy}","received_events_url":"https://api.github.com/users/djmitche/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-25T23:11:28Z","updated_at":"2015-06-29T14:37:00Z","closed_at":null,"body":"If you write\r\n```\r\nimport relengapi.blueprints.foo.bar as bar\r\n```\r\nin `relengapi/blueprints/foo/__init__.py`, you'll get an ImportError, because the use of `__import__` in `relengapi.app` isn't up to snuff."},"comment":{"url":"https://api.github.com/repos/mozilla/build-relengapi/issues/comments/116707577","html_url":"https://github.com/mozilla/build-relengapi/issues/291#issuecomment-116707577","issue_url":"https://api.github.com/repos/mozilla/build-relengapi/issues/291","id":116707577,"user":{"login":"djmitche","id":28673,"avatar_url":"https://avatars.githubusercontent.com/u/28673?v=3","gravatar_id":"","url":"https://api.github.com/users/djmitche","html_url":"https://github.com/djmitche","followers_url":"https://api.github.com/users/djmitche/followers","following_url":"https://api.github.com/users/djmitche/following{/other_user}","gists_url":"https://api.github.com/users/djmitche/gists{/gist_id}","starred_url":"https://api.github.com/users/djmitche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmitche/subscriptions","organizations_url":"https://api.github.com/users/djmitche/orgs","repos_url":"https://api.github.com/users/djmitche/repos","events_url":"https://api.github.com/users/djmitche/events{/privacy}","received_events_url":"https://api.github.com/users/djmitche/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T14:37:00Z","updated_at":"2015-06-29T14:37:00Z","body":"Looks like this is actually a Python bug and doesn't even require `__import__`\r\n\r\n```\r\n# main.py\r\nimport foo.bar\r\n```\r\n```\r\n# foo/__init__.py\r\n# (empty)\r\n```\r\n```\r\n# foo/bar/__init__.py\r\nimport foo.bar.bing as bing\r\n```\r\n```\r\n# foo/bar/bing.py\r\n# (empty)\r\n```"}}