[issue24494] Can't specify encoding with fileinput and inplace=True

2015-06-24 Thread R. David Murray
R. David Murray added the comment: I presume this is because openhook could be anything, including something where the inplace code couldn't even find the file to rename. On the other hand, Python is a consenting adults language, so we can assume you know what you are doing if you specify

[issue24494] Can't specify encoding with fileinput and inplace=True

2015-06-23 Thread lilydjwg
New submission from lilydjwg: I want to use fileinput to modify files, but find no way to specify the file encoding. I tried to use hook_encoded, but it says FileInput cannot use an opening hook in inplace mode. -- components: Library (Lib) messages: 245711 nosy: lilydjwg priority: