消息 [151902]
Yes, fixing the conversion block is probably the right approach.
Apparently posixmodule.c uses PyUnicode_FSConverter, perhaps that would work?
(also make sure that the case where a bytes string is given is fixed too:
>>> open(b"\x00")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: ''
) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-01-24 13:20:50 | pitrou | 修改 | recipients:
+ pitrou, alex, hynek |
| 2012-01-24 13:20:50 | pitrou | 修改 | messageid: <1327411250.75.0.464495984273.issue13848@psf.upfronthosting.co.za> |
| 2012-01-24 13:20:50 | pitrou | 链接 | issue13848 messages |
| 2012-01-24 13:20:49 | pitrou | 创建 | |
|