{"action":"created","issue":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/512","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/512/comments","events_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/512/events","html_url":"https://github.com/jorgenschaefer/elpy/issues/512","id":59759926,"number":512,"title":"importmagic mangles imports","user":{"login":"jorgenschaefer","id":2500270,"avatar_url":"https://avatars.githubusercontent.com/u/2500270?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgenschaefer","html_url":"https://github.com/jorgenschaefer","followers_url":"https://api.github.com/users/jorgenschaefer/followers","following_url":"https://api.github.com/users/jorgenschaefer/following{/other_user}","gists_url":"https://api.github.com/users/jorgenschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgenschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgenschaefer/subscriptions","organizations_url":"https://api.github.com/users/jorgenschaefer/orgs","repos_url":"https://api.github.com/users/jorgenschaefer/repos","events_url":"https://api.github.com/users/jorgenschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/jorgenschaefer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jorgenschaefer/elpy/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/milestones/14","html_url":"https://github.com/jorgenschaefer/elpy/milestones/v1.8","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/milestones/14/labels","id":928225,"number":14,"title":"v1.8","description":"","creator":{"login":"jorgenschaefer","id":2500270,"avatar_url":"https://avatars.githubusercontent.com/u/2500270?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgenschaefer","html_url":"https://github.com/jorgenschaefer","followers_url":"https://api.github.com/users/jorgenschaefer/followers","following_url":"https://api.github.com/users/jorgenschaefer/following{/other_user}","gists_url":"https://api.github.com/users/jorgenschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgenschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgenschaefer/subscriptions","organizations_url":"https://api.github.com/users/jorgenschaefer/orgs","repos_url":"https://api.github.com/users/jorgenschaefer/repos","events_url":"https://api.github.com/users/jorgenschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/jorgenschaefer/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":24,"state":"open","created_at":"2015-01-09T08:02:23Z","updated_at":"2015-03-04T07:24:22Z","due_on":"2015-04-30T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-03-04T07:24:22Z","updated_at":"2015-03-06T12:41:47Z","closed_at":null,"body":"Just saw this, not sure how to reproduce:\r\n\r\n```\r\nimport cPickle as pickle\r\n\r\n[...]\r\n\r\nsys.getsizeof(o, 0)\r\n```\r\n\r\n`C-c C-m`\r\nObject to import: `sys.getsizeof` \r\nNew import statement: `import sys`\r\n\r\n```\r\nimport cPickleas pickle\r\nimport sys\r\n```\r\n\r\n```\r\nImportmagic.......: 0.1.3\r\n```"},"comment":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/comments/77553084","html_url":"https://github.com/jorgenschaefer/elpy/issues/512#issuecomment-77553084","issue_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/512","id":77553084,"user":{"login":"whirm","id":529494,"avatar_url":"https://avatars.githubusercontent.com/u/529494?v=3","gravatar_id":"","url":"https://api.github.com/users/whirm","html_url":"https://github.com/whirm","followers_url":"https://api.github.com/users/whirm/followers","following_url":"https://api.github.com/users/whirm/following{/other_user}","gists_url":"https://api.github.com/users/whirm/gists{/gist_id}","starred_url":"https://api.github.com/users/whirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whirm/subscriptions","organizations_url":"https://api.github.com/users/whirm/orgs","repos_url":"https://api.github.com/users/whirm/repos","events_url":"https://api.github.com/users/whirm/events{/privacy}","received_events_url":"https://api.github.com/users/whirm/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T12:41:47Z","updated_at":"2015-03-06T12:41:47Z","body":"The same just happened to me, I used importmagic and got the first ```import X as Z mangled``` to ```import timeas timemod```\r\nthe rest are just fine."}}