Message263605
Calling the openhook for the stdin will break existing code. Third-party openhooks don't special case the '<stdin>' name, which is legitimate file name.
Instead I recommend to patch sys.stdin explicitly in your program.
sys.stdin = io.TextIOWrapper(sys.stdin.buffer, errors='replace')
for line in fileinput.input(openhook=hook):
... |
|
Date |
User |
Action |
Args |
2016-04-17 10:55:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, SilentGhost, jmb236 |
2016-04-17 10:55:15 | serhiy.storchaka | set | messageid: <1460890515.84.0.445521285977.issue26756@psf.upfronthosting.co.za> |
2016-04-17 10:55:15 | serhiy.storchaka | link | issue26756 messages |
2016-04-17 10:55:15 | serhiy.storchaka | create | |
|