{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/42085","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/42085/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/42085/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/42085/events","html_url":"https://github.com/rust-lang/rust/issues/42085","id":229709776,"number":42085,"title":"x.py no longer works with Python 3","user":{"login":"mjkillough","id":532855,"avatar_url":"https://avatars0.githubusercontent.com/u/532855?v=3","gravatar_id":"","url":"https://api.github.com/users/mjkillough","html_url":"https://github.com/mjkillough","followers_url":"https://api.github.com/users/mjkillough/followers","following_url":"https://api.github.com/users/mjkillough/following{/other_user}","gists_url":"https://api.github.com/users/mjkillough/gists{/gist_id}","starred_url":"https://api.github.com/users/mjkillough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjkillough/subscriptions","organizations_url":"https://api.github.com/users/mjkillough/orgs","repos_url":"https://api.github.com/users/mjkillough/repos","events_url":"https://api.github.com/users/mjkillough/events{/privacy}","received_events_url":"https://api.github.com/users/mjkillough/received_events","type":"User","site_admin":false},"labels":[{"id":177808,"url":"https://api.github.com/repos/rust-lang/rust/labels/A-build","name":"A-build","color":"d7e102","default":false},{"id":211668100,"url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-18T15:14:43Z","updated_at":"2017-05-19T21:13:56Z","closed_at":null,"body":"Recent changes to `x.py` have stopped it from working when run with Python 3:\r\n\r\n```\r\n[rust] $ python x.py\r\nUpdating submodules\r\nTraceback (most recent call last):\r\n  File \"x.py\", line 20, in <module>\r\n    bootstrap.main()\r\n  File \"/home/mjk/Code/rust/src/bootstrap/bootstrap.py\", line 684, in main\r\n    bootstrap()\r\n  File \"/home/mjk/Code/rust/src/bootstrap/bootstrap.py\", line 662, in bootstrap\r\n    rb.update_submodules()\r\n  File \"/home/mjk/Code/rust/src/bootstrap/bootstrap.py\", line 566, in update_submodules\r\n    path = line[1:].split(' ')[1]\r\nTypeError: a bytes-like object is required, not 'str'\r\n[rust] $ python --version\r\nPython 3.6.1\r\n[rust] $ git rev-parse HEAD\r\n6af8c6c7d1173f68addbf51560e6a009b30c9a93\r\n```\r\n\r\nIt works when run with Python 2.\r\n\r\nI had a quick look at fixing it, but it looks like the fix would need testing on Windows (due to console encoding shenanigans) and I don't have a Windows machine available right now."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/302812707","html_url":"https://github.com/rust-lang/rust/issues/42085#issuecomment-302812707","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/42085","id":302812707,"user":{"login":"projektir","id":16269746,"avatar_url":"https://avatars3.githubusercontent.com/u/16269746?v=3","gravatar_id":"","url":"https://api.github.com/users/projektir","html_url":"https://github.com/projektir","followers_url":"https://api.github.com/users/projektir/followers","following_url":"https://api.github.com/users/projektir/following{/other_user}","gists_url":"https://api.github.com/users/projektir/gists{/gist_id}","starred_url":"https://api.github.com/users/projektir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projektir/subscriptions","organizations_url":"https://api.github.com/users/projektir/orgs","repos_url":"https://api.github.com/users/projektir/repos","events_url":"https://api.github.com/users/projektir/events{/privacy}","received_events_url":"https://api.github.com/users/projektir/received_events","type":"User","site_admin":false},"created_at":"2017-05-19T21:13:56Z","updated_at":"2017-05-19T21:13:56Z","body":"@mjkillough interesting. Those are tidy failures, I got them too when I tried a different run, they're indeed unrelated (probably). Btw, why are you using `python3` here, when, previously, you were using `python`, and it had version `Python 3.6.1`?"}}
{"actor":{"display_login":"projektir"}}