{"action":"opened","issue":{"url":"https://api.github.com/repos/iit-cs429/main/issues/40","labels_url":"https://api.github.com/repos/iit-cs429/main/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/iit-cs429/main/issues/40/comments","events_url":"https://api.github.com/repos/iit-cs429/main/issues/40/events","html_url":"https://github.com/iit-cs429/main/issues/40","id":57681930,"number":40,"title":"Issue with reading documents.txt","user":{"login":"dbajic","id":10510901,"avatar_url":"https://avatars.githubusercontent.com/u/10510901?v=3","gravatar_id":"","url":"https://api.github.com/users/dbajic","html_url":"https://github.com/dbajic","followers_url":"https://api.github.com/users/dbajic/followers","following_url":"https://api.github.com/users/dbajic/following{/other_user}","gists_url":"https://api.github.com/users/dbajic/gists{/gist_id}","starred_url":"https://api.github.com/users/dbajic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbajic/subscriptions","organizations_url":"https://api.github.com/users/dbajic/orgs","repos_url":"https://api.github.com/users/dbajic/repos","events_url":"https://api.github.com/users/dbajic/events{/privacy}","received_events_url":"https://api.github.com/users/dbajic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-14T05:21:54Z","updated_at":"2015-02-14T05:21:54Z","closed_at":null,"body":"While I was trying to test things in my code, I received the following error trying to read the file:\r\n\r\n    ValueError: Invalid mode ('rtb')\r\n\r\nLooking a little bit deeper, the issue stems from these lines in codecs.py:\r\n\r\n    876             # Force opening of the file in binary mode\r\n    877             mode = mode + 'b'\r\n    --> 878     file = __builtin__.open(filename, mode, buffering)\r\n\r\nWhat exactly am I supposed to do in this case? I haven't modified any pre-given function."}}