{"action":"created","issue":{"url":"https://api.github.com/repos/gevent/gevent/issues/975","repository_url":"https://api.github.com/repos/gevent/gevent","labels_url":"https://api.github.com/repos/gevent/gevent/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/gevent/gevent/issues/975/comments","events_url":"https://api.github.com/repos/gevent/gevent/issues/975/events","html_url":"https://github.com/gevent/gevent/pull/975","id":231415094,"number":975,"title":"monkey: exec scripts in global scope","user":{"login":"sbohrer","id":15516,"avatar_url":"https://avatars0.githubusercontent.com/u/15516?v=3","gravatar_id":"","url":"https://api.github.com/users/sbohrer","html_url":"https://github.com/sbohrer","followers_url":"https://api.github.com/users/sbohrer/followers","following_url":"https://api.github.com/users/sbohrer/following{/other_user}","gists_url":"https://api.github.com/users/sbohrer/gists{/gist_id}","starred_url":"https://api.github.com/users/sbohrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbohrer/subscriptions","organizations_url":"https://api.github.com/users/sbohrer/orgs","repos_url":"https://api.github.com/users/sbohrer/repos","events_url":"https://api.github.com/users/sbohrer/events{/privacy}","received_events_url":"https://api.github.com/users/sbohrer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-05-25T18:09:14Z","updated_at":"2017-05-25T20:37:17Z","closed_at":"2017-05-25T20:36:42Z","pull_request":{"url":"https://api.github.com/repos/gevent/gevent/pulls/975","html_url":"https://github.com/gevent/gevent/pull/975","diff_url":"https://github.com/gevent/gevent/pull/975.diff","patch_url":"https://github.com/gevent/gevent/pull/975.patch"},"body":"Commit 59581a8a3b7b0a4722fb3f7074fce6cd4c700bfd \"Add python 3.5\r\nselectors test, and remove the devpoll selector under 3.5. also update\r\nthe monkey documentation.\" Introduced a regression by moving the exec of\r\nscripts into a main() function. If the script being run with exec has\r\nimport statements those are now locally scoped to the main() function\r\nwhich can break the script.\r\n\r\nIt does not appear that this local scoping was intentional so the fix is\r\nto exec the script in the global scope, returning the previous behavior."},"comment":{"url":"https://api.github.com/repos/gevent/gevent/issues/comments/304117279","html_url":"https://github.com/gevent/gevent/pull/975#issuecomment-304117279","issue_url":"https://api.github.com/repos/gevent/gevent/issues/975","id":304117279,"user":{"login":"jamadden","id":1256082,"avatar_url":"https://avatars0.githubusercontent.com/u/1256082?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadden","html_url":"https://github.com/jamadden","followers_url":"https://api.github.com/users/jamadden/followers","following_url":"https://api.github.com/users/jamadden/following{/other_user}","gists_url":"https://api.github.com/users/jamadden/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadden/subscriptions","organizations_url":"https://api.github.com/users/jamadden/orgs","repos_url":"https://api.github.com/users/jamadden/repos","events_url":"https://api.github.com/users/jamadden/events{/privacy}","received_events_url":"https://api.github.com/users/jamadden/received_events","type":"User","site_admin":false},"created_at":"2017-05-25T20:37:17Z","updated_at":"2017-05-25T20:37:17Z","body":"Thanks!"}}
{"actor":{"display_login":"jamadden"}}