summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-01-02 20:41:41 (GMT)
committerR David Murray <rdmurray@bitdance.com>2016-01-02 20:41:41 (GMT)
commit830207e8f32df949ec35e2e7f5afe98975e262c9 (patch)
treefaddddb33d51837ca7de7bfecb0f809d535f0255 /Misc
parentfcb6db50d3cce6337f28c9c1b891905cc323ad13 (diff)
downloadcpython-830207e8f32df949ec35e2e7f5afe98975e262c9.zip
cpython-830207e8f32df949ec35e2e7f5afe98975e262c9.tar.gz
cpython-830207e8f32df949ec35e2e7f5afe98975e262c9.tar.bz2
#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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 6d24252..c526130 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -41,6 +41,9 @@ Core and Builtins
Library
-------
+- Issue #25447: fileinput now uses sys.stdin as-is if it does not have a
+ buffer attribute (restores backward compatibility).
+
- Issue #25447: Copying the lru_cache() wrapper object now always works,
independedly from the type of the wrapped object (by returning the original
object unchanged).