{"action":"created","issue":{"url":"https://api.github.com/repos/Pylons/pyramid_cookbook/issues/218","repository_url":"https://api.github.com/repos/Pylons/pyramid_cookbook","labels_url":"https://api.github.com/repos/Pylons/pyramid_cookbook/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/Pylons/pyramid_cookbook/issues/218/comments","events_url":"https://api.github.com/repos/Pylons/pyramid_cookbook/issues/218/events","html_url":"https://github.com/Pylons/pyramid_cookbook/pull/218","id":371467111,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzOTA2Mzg1","number":218,"title":"Fix a TypeError","user":{"login":"silenius","id":1225348,"node_id":"MDQ6VXNlcjEyMjUzNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/1225348?v=4","gravatar_id":"","url":"https://api.github.com/users/silenius","html_url":"https://github.com/silenius","followers_url":"https://api.github.com/users/silenius/followers","following_url":"https://api.github.com/users/silenius/following{/other_user}","gists_url":"https://api.github.com/users/silenius/gists{/gist_id}","starred_url":"https://api.github.com/users/silenius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silenius/subscriptions","organizations_url":"https://api.github.com/users/silenius/orgs","repos_url":"https://api.github.com/users/silenius/repos","events_url":"https://api.github.com/users/silenius/events{/privacy}","received_events_url":"https://api.github.com/users/silenius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-18T10:36:57Z","updated_at":"2018-10-18T15:03:28Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Pylons/pyramid_cookbook/pulls/218","html_url":"https://github.com/Pylons/pyramid_cookbook/pull/218","diff_url":"https://github.com/Pylons/pyramid_cookbook/pull/218.diff","patch_url":"https://github.com/Pylons/pyramid_cookbook/pull/218.patch"},"body":"a PosixPath cannot be used as an argument in io.open():\r\n\r\n```\r\nTypeError: invalid file: PosixPath('/some/file/path/static_builds/pyramid_config.json')\r\n```"},"comment":{"url":"https://api.github.com/repos/Pylons/pyramid_cookbook/issues/comments/431044429","html_url":"https://github.com/Pylons/pyramid_cookbook/pull/218#issuecomment-431044429","issue_url":"https://api.github.com/repos/Pylons/pyramid_cookbook/issues/218","id":431044429,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTA0NDQyOQ==","user":{"login":"ergo","id":33021,"node_id":"MDQ6VXNlcjMzMDIx","avatar_url":"https://avatars3.githubusercontent.com/u/33021?v=4","gravatar_id":"","url":"https://api.github.com/users/ergo","html_url":"https://github.com/ergo","followers_url":"https://api.github.com/users/ergo/followers","following_url":"https://api.github.com/users/ergo/following{/other_user}","gists_url":"https://api.github.com/users/ergo/gists{/gist_id}","starred_url":"https://api.github.com/users/ergo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ergo/subscriptions","organizations_url":"https://api.github.com/users/ergo/orgs","repos_url":"https://api.github.com/users/ergo/repos","events_url":"https://api.github.com/users/ergo/events{/privacy}","received_events_url":"https://api.github.com/users/ergo/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T15:03:28Z","updated_at":"2018-10-18T15:03:28Z","author_association":"MEMBER","body":"@silenius I believe this depends on the python version you use:\r\nOn python3.6 this works just fine, on 3.5 I believe you need to use `os.path.join()` there,.\r\n\r\n```\r\n>>> import pathlib\r\n>>> import io\r\n>>> f = io.open(pathlib.Path('wyniki'))\r\n>>> f.read()\r\n```\r\n"}}
{"actor":{"display_login":"ergo"}}