{"comment":{"url":"https://api.github.com/repos/mgorny/blueman/comments/12634170","html_url":"https://github.com/mgorny/blueman/commit/37887bfc0d44fcc1d1f717c6d19b0cbb1fbba670#commitcomment-12634170","id":12634170,"user":{"login":"yars068","id":11477745,"avatar_url":"https://avatars.githubusercontent.com/u/11477745?v=3","gravatar_id":"","url":"https://api.github.com/users/yars068","html_url":"https://github.com/yars068","followers_url":"https://api.github.com/users/yars068/followers","following_url":"https://api.github.com/users/yars068/following{/other_user}","gists_url":"https://api.github.com/users/yars068/gists{/gist_id}","starred_url":"https://api.github.com/users/yars068/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yars068/subscriptions","organizations_url":"https://api.github.com/users/yars068/orgs","repos_url":"https://api.github.com/users/yars068/repos","events_url":"https://api.github.com/users/yars068/events{/privacy}","received_events_url":"https://api.github.com/users/yars068/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"37887bfc0d44fcc1d1f717c6d19b0cbb1fbba670","created_at":"2015-08-11T07:42:34Z","updated_at":"2015-08-11T07:42:34Z","body":"When used 'r' (open for reading) that should raise an \"no such file\" exception, that is IOError with errno=2. But not sure what it should be on a device node, not on a regular file. Please try with this code:\r\n```\r\n$ python\r\n>>> import os\r\n>>> open('~/test.txt', 'r', 0)\r\n```\r\nOn my system, with pytthon 2.7, that lead to raising an exception:\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nIOError: [Errno 2] No such file or directory: '~/test.txt'\r\n```"}}