{"action":"closed","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/3508","repository_url":"https://api.github.com/repos/kennethreitz/requests","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/3508/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/3508/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/3508/events","html_url":"https://github.com/kennethreitz/requests/issues/3508","id":170787922,"number":3508,"title":"Grammar error in document: Quickstart","user":{"login":"forrestchang","id":7857126,"avatar_url":"https://avatars.githubusercontent.com/u/7857126?v=3","gravatar_id":"","url":"https://api.github.com/users/forrestchang","html_url":"https://github.com/forrestchang","followers_url":"https://api.github.com/users/forrestchang/followers","following_url":"https://api.github.com/users/forrestchang/following{/other_user}","gists_url":"https://api.github.com/users/forrestchang/gists{/gist_id}","starred_url":"https://api.github.com/users/forrestchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forrestchang/subscriptions","organizations_url":"https://api.github.com/users/forrestchang/orgs","repos_url":"https://api.github.com/users/forrestchang/repos","events_url":"https://api.github.com/users/forrestchang/events{/privacy}","received_events_url":"https://api.github.com/users/forrestchang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-12T02:33:18Z","updated_at":"2016-08-13T10:43:51Z","closed_at":"2016-08-13T10:43:51Z","body":"In section [Binary Response Content](http://docs.python-requests.org/en/master/user/quickstart/#binary-response-content), `r.content` returns an instance of `bytes` while `StringIO` is an in-memory stream for text only. It should use `BytesIO` instead.\r\n\r\n```python\r\nfrom PIL import Image\r\nfrom io import BytesIO\r\n\r\ni = Image.open(BytesIO(r.content))\r\n```\r\n\r\nUse original code will raise `TypeError: initial_value must be str or None, not bytes.`"}}
{"actor":{"display_login":"Lukasa"}}