{"action":"created","issue":{"url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/111","labels_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/111/comments","events_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/111/events","html_url":"https://github.com/jonathanslenders/python-prompt-toolkit/pull/111","id":75171381,"number":111,"title":"Fixing bug with default message in get_input()","user":{"login":"anula","id":4399755,"avatar_url":"https://avatars.githubusercontent.com/u/4399755?v=3","gravatar_id":"","url":"https://api.github.com/users/anula","html_url":"https://github.com/anula","followers_url":"https://api.github.com/users/anula/followers","following_url":"https://api.github.com/users/anula/following{/other_user}","gists_url":"https://api.github.com/users/anula/gists{/gist_id}","starred_url":"https://api.github.com/users/anula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anula/subscriptions","organizations_url":"https://api.github.com/users/anula/orgs","repos_url":"https://api.github.com/users/anula/repos","events_url":"https://api.github.com/users/anula/events{/privacy}","received_events_url":"https://api.github.com/users/anula/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T10:26:05Z","updated_at":"2015-05-11T19:59:03Z","closed_at":"2015-05-11T19:59:03Z","pull_request":{"url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/pulls/111","html_url":"https://github.com/jonathanslenders/python-prompt-toolkit/pull/111","diff_url":"https://github.com/jonathanslenders/python-prompt-toolkit/pull/111.diff","patch_url":"https://github.com/jonathanslenders/python-prompt-toolkit/pull/111.patch"},"body":"Following code stopped working after last commit introducing `get_prompt_tokens` in `create_default_layout`:\r\n```\r\nfrom prompt_toolkit.shortcuts import get_input\r\n\r\nif __name__ == '__main__':\r\n    answer = get_input()\r\n    print('You said: %s' % answer)\r\n```\r\nBecause when message is empty (`''`) then code assumes that there is `get_prompt_tokens` function, which is not always true.\r\n\r\nThis is a very simple fix for this issue."},"comment":{"url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/comments/101031384","html_url":"https://github.com/jonathanslenders/python-prompt-toolkit/pull/111#issuecomment-101031384","issue_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/111","id":101031384,"user":{"login":"jonathanslenders","id":216638,"avatar_url":"https://avatars.githubusercontent.com/u/216638?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanslenders","html_url":"https://github.com/jonathanslenders","followers_url":"https://api.github.com/users/jonathanslenders/followers","following_url":"https://api.github.com/users/jonathanslenders/following{/other_user}","gists_url":"https://api.github.com/users/jonathanslenders/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanslenders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanslenders/subscriptions","organizations_url":"https://api.github.com/users/jonathanslenders/orgs","repos_url":"https://api.github.com/users/jonathanslenders/repos","events_url":"https://api.github.com/users/jonathanslenders/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanslenders/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T19:59:03Z","updated_at":"2015-05-11T19:59:03Z","body":"Thank you @anula!\r\nThis was my fault, thanks for fixing it!\r\nIt merged your pull request: https://github.com/jonathanslenders/python-prompt-toolkit/commit/4dfa286194a503339709e5e33d557bf82f410e9c\r\n\r\nCheers,\r\nJonathan"}}