]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#22709: Use stdin as-is if it does not have a buffer attribute.
authorR David Murray <rdmurray@bitdance.com>
Sat, 2 Jan 2016 20:41:41 +0000 (15:41 -0500)
committerR David Murray <rdmurray@bitdance.com>
Sat, 2 Jan 2016 20:41:41 +0000 (15:41 -0500)
commit830207e8f32df949ec35e2e7f5afe98975e262c9
treefaddddb33d51837ca7de7bfecb0f809d535f0255
parentfcb6db50d3cce6337f28c9c1b891905cc323ad13
#22709: Use stdin as-is if it does not have a buffer attribute.

This restores backward compatibility lost in the fix for #21075, and
is better duck typing.

Patch by Akira Li.
Lib/fileinput.py
Lib/test/test_fileinput.py
Misc/NEWS