{"action":"opened","issue":{"url":"https://api.github.com/repos/timothycrosley/isort/issues/252","labels_url":"https://api.github.com/repos/timothycrosley/isort/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/timothycrosley/isort/issues/252/comments","events_url":"https://api.github.com/repos/timothycrosley/isort/issues/252/events","html_url":"https://github.com/timothycrosley/isort/issues/252","id":57318712,"number":252,"title":"Support `cimport` from Cython/Pyrex","user":{"login":"t-8ch","id":717901,"avatar_url":"https://avatars.githubusercontent.com/u/717901?v=3","gravatar_id":"","url":"https://api.github.com/users/t-8ch","html_url":"https://github.com/t-8ch","followers_url":"https://api.github.com/users/t-8ch/followers","following_url":"https://api.github.com/users/t-8ch/following{/other_user}","gists_url":"https://api.github.com/users/t-8ch/gists{/gist_id}","starred_url":"https://api.github.com/users/t-8ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-8ch/subscriptions","organizations_url":"https://api.github.com/users/t-8ch/orgs","repos_url":"https://api.github.com/users/t-8ch/repos","events_url":"https://api.github.com/users/t-8ch/events{/privacy}","received_events_url":"https://api.github.com/users/t-8ch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-11T13:58:53Z","updated_at":"2015-02-11T13:58:53Z","closed_at":null,"body":"Cython has, additionally to classic `import` statements the `cimport` statements to import native C functions [0].\r\nCurrently isort mangles those:\r\n\r\nBefore:\r\n```pyrex\r\nfrom .storage cimport Offset, Storage\r\n```\r\n\r\nAfter:\r\n```py\r\nfrom .storagecimportOffset import Storage\r\n```\r\n\r\nIt would be nice if isort either\r\n\r\n1. Does not mangle those\r\n2. Even better: sort them properly (TBH: I am not sure what sorting scheme would be best)\r\n\r\n[0] http://docs.cython.org/src/tutorial/pxd_files.html"}}