{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/552","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/552/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/552/events","html_url":"https://github.com/spyder-ide/spyder/issues/552","id":57866126,"number":552,"title":"run selection on indented code doesn't work","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/2%E2%80%935%20stars","name":"2–5 stars","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Milestone-Release2.1","name":"Milestone-Release2.1","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Python-Console","name":"Python-Console","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/4","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/4/labels","id":982076,"number":4,"title":"Release2.1","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":13,"state":"open","created_at":"2015-02-16T23:16:58Z","updated_at":"2015-02-16T23:55:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-02-16T23:55:32Z","updated_at":"2015-02-16T23:55:33Z","closed_at":null,"body":"_From [piersti...@gmail.com](https://code.google.com/u/100965626161089822949/) on 2011-02-08T06:31:29Z_\n\n\n\nWhat steps will reproduce the problem?\n\n 1. select a piece of indented code, for example a part within a for loop\r\n2. press F9 What is the expected output? What do you see instead? expected: Code is unindented with the amount of indent of the first line (the amount of indent in the file, not in the selection, so it also works when not selecting the whole line). Then it is executed in the terminal. \r\nCurrently the code is directly executed, resulting in an IndentationError What version of the product are you using? On what operating system? Spyder 2.0.6 on Linux\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=552_"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/74593245","html_url":"https://github.com/spyder-ide/spyder/issues/552#issuecomment-74593245","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/552","id":74593245,"user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T23:55:33Z","updated_at":"2015-02-16T23:55:33Z","body":"_From [ccordoba12](https://code.google.com/u/ccordoba12/) on 2011-05-15T19:40:47Z_\n\n**Labels:** Cat-Console  \n"}}