reject None as the buffering argument like the C implementation does #8546
3 files changed