{"action":"created","issue":{"url":"https://api.github.com/repos/dissemin/wikiciteparser/issues/4","repository_url":"https://api.github.com/repos/dissemin/wikiciteparser","labels_url":"https://api.github.com/repos/dissemin/wikiciteparser/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dissemin/wikiciteparser/issues/4/comments","events_url":"https://api.github.com/repos/dissemin/wikiciteparser/issues/4/events","html_url":"https://github.com/dissemin/wikiciteparser/pull/4","id":157218262,"number":4,"title":"Use importlib (from the standard library) instead of the buildin __import__","user":{"login":"CristianCantoro","id":367272,"avatar_url":"https://avatars.githubusercontent.com/u/367272?v=3","gravatar_id":"","url":"https://api.github.com/users/CristianCantoro","html_url":"https://github.com/CristianCantoro","followers_url":"https://api.github.com/users/CristianCantoro/followers","following_url":"https://api.github.com/users/CristianCantoro/following{/other_user}","gists_url":"https://api.github.com/users/CristianCantoro/gists{/gist_id}","starred_url":"https://api.github.com/users/CristianCantoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CristianCantoro/subscriptions","organizations_url":"https://api.github.com/users/CristianCantoro/orgs","repos_url":"https://api.github.com/users/CristianCantoro/repos","events_url":"https://api.github.com/users/CristianCantoro/events{/privacy}","received_events_url":"https://api.github.com/users/CristianCantoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T14:24:45Z","updated_at":"2016-05-27T19:37:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dissemin/wikiciteparser/pulls/4","html_url":"https://github.com/dissemin/wikiciteparser/pull/4","diff_url":"https://github.com/dissemin/wikiciteparser/pull/4.diff","patch_url":"https://github.com/dissemin/wikiciteparser/pull/4.patch"},"body":"Hi,\r\n\r\nsorry for the flood of pull requests. This is a follow-up from PR https://github.com/dissemin/wikiciteparser/pull/3.\r\n\r\nI am changing the dynamic module loading to:\r\n```python\r\n    lang_module = importlib.import_module('.' + lang, package='wikiciteparser')\r\n```\r\nusing the module `importlib` from the Python standard library (see [docs](https://docs.python.org/2/library/importlib.html)). \r\n\r\nIt seems cleaner and more robust than the previous solution (which I am not 100% sure was working, by the way).\r\n\r\n(EDIT: fixed commit message)"},"comment":{"url":"https://api.github.com/repos/dissemin/wikiciteparser/issues/comments/222235516","html_url":"https://github.com/dissemin/wikiciteparser/pull/4#issuecomment-222235516","issue_url":"https://api.github.com/repos/dissemin/wikiciteparser/issues/4","id":222235516,"user":{"login":"wetneb","id":309908,"avatar_url":"https://avatars.githubusercontent.com/u/309908?v=3","gravatar_id":"","url":"https://api.github.com/users/wetneb","html_url":"https://github.com/wetneb","followers_url":"https://api.github.com/users/wetneb/followers","following_url":"https://api.github.com/users/wetneb/following{/other_user}","gists_url":"https://api.github.com/users/wetneb/gists{/gist_id}","starred_url":"https://api.github.com/users/wetneb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wetneb/subscriptions","organizations_url":"https://api.github.com/users/wetneb/orgs","repos_url":"https://api.github.com/users/wetneb/repos","events_url":"https://api.github.com/users/wetneb/events{/privacy}","received_events_url":"https://api.github.com/users/wetneb/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T19:37:07Z","updated_at":"2016-05-27T19:37:07Z","body":"That's fine! :-)"}}
{"actor":{"display_login":"wetneb"}}