{"action":"created","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/3745","repository_url":"https://api.github.com/repos/rtfd/readthedocs.org","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/3745/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/3745/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/3745/events","html_url":"https://github.com/rtfd/readthedocs.org/pull/3745","id":302913296,"number":3745,"title":"Auto-generate conf.py compatible with Py2 and Py3","user":{"login":"humitos","id":244656,"avatar_url":"https://avatars1.githubusercontent.com/u/244656?v=4","gravatar_id":"","url":"https://api.github.com/users/humitos","html_url":"https://github.com/humitos","followers_url":"https://api.github.com/users/humitos/followers","following_url":"https://api.github.com/users/humitos/following{/other_user}","gists_url":"https://api.github.com/users/humitos/gists{/gist_id}","starred_url":"https://api.github.com/users/humitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humitos/subscriptions","organizations_url":"https://api.github.com/users/humitos/orgs","repos_url":"https://api.github.com/users/humitos/repos","events_url":"https://api.github.com/users/humitos/events{/privacy}","received_events_url":"https://api.github.com/users/humitos/received_events","type":"User","site_admin":false},"labels":[{"id":228777710,"url":"https://api.github.com/repos/rtfd/readthedocs.org/labels/PR:%20ready%20for%20review","name":"PR: ready for review","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"humitos","id":244656,"avatar_url":"https://avatars1.githubusercontent.com/u/244656?v=4","gravatar_id":"","url":"https://api.github.com/users/humitos","html_url":"https://github.com/humitos","followers_url":"https://api.github.com/users/humitos/followers","following_url":"https://api.github.com/users/humitos/following{/other_user}","gists_url":"https://api.github.com/users/humitos/gists{/gist_id}","starred_url":"https://api.github.com/users/humitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humitos/subscriptions","organizations_url":"https://api.github.com/users/humitos/orgs","repos_url":"https://api.github.com/users/humitos/repos","events_url":"https://api.github.com/users/humitos/events{/privacy}","received_events_url":"https://api.github.com/users/humitos/received_events","type":"User","site_admin":false},"assignees":[{"login":"humitos","id":244656,"avatar_url":"https://avatars1.githubusercontent.com/u/244656?v=4","gravatar_id":"","url":"https://api.github.com/users/humitos","html_url":"https://github.com/humitos","followers_url":"https://api.github.com/users/humitos/followers","following_url":"https://api.github.com/users/humitos/following{/other_user}","gists_url":"https://api.github.com/users/humitos/gists{/gist_id}","starred_url":"https://api.github.com/users/humitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humitos/subscriptions","organizations_url":"https://api.github.com/users/humitos/orgs","repos_url":"https://api.github.com/users/humitos/repos","events_url":"https://api.github.com/users/humitos/events{/privacy}","received_events_url":"https://api.github.com/users/humitos/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-03-06T23:54:18Z","updated_at":"2018-03-22T17:26:06Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/pulls/3745","html_url":"https://github.com/rtfd/readthedocs.org/pull/3745","diff_url":"https://github.com/rtfd/readthedocs.org/pull/3745.diff","patch_url":"https://github.com/rtfd/readthedocs.org/pull/3745.patch"},"body":"I found there is a mix of str compatibility types depending if we are in Py2 or Py3 when trying to auto-generate the `conf.py` if the project doesn't have one.\r\n\r\nThe test pushed in the first commit should pass on Py2 but should fail in Py3. This is because how `open` and `encode` behaves (I don't know the internals, though).\r\n\r\nRef: https://github.com/rtfd/readthedocs.org/issues/3644#issuecomment-370945200"},"comment":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/comments/375390214","html_url":"https://github.com/rtfd/readthedocs.org/pull/3745#issuecomment-375390214","issue_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/3745","id":375390214,"user":{"login":"stsewd","id":4975310,"avatar_url":"https://avatars2.githubusercontent.com/u/4975310?v=4","gravatar_id":"","url":"https://api.github.com/users/stsewd","html_url":"https://github.com/stsewd","followers_url":"https://api.github.com/users/stsewd/followers","following_url":"https://api.github.com/users/stsewd/following{/other_user}","gists_url":"https://api.github.com/users/stsewd/gists{/gist_id}","starred_url":"https://api.github.com/users/stsewd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stsewd/subscriptions","organizations_url":"https://api.github.com/users/stsewd/orgs","repos_url":"https://api.github.com/users/stsewd/repos","events_url":"https://api.github.com/users/stsewd/events{/privacy}","received_events_url":"https://api.github.com/users/stsewd/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T17:26:06Z","updated_at":"2018-03-22T17:26:06Z","author_association":"CONTRIBUTOR","body":"@humitos I'll try to debug on my local instance now."}}
{"actor":{"display_login":"stsewd"}}