[issue22709] restore accepting detached stdin in fileinput binary mode
Akira Li
report at bugs.python.org
Thu Oct 23 09:16:00 CEST 2014
New submission from Akira Li:
The patch for Issue #21075: "fileinput.FileInput now reads bytes from standard stream if binary mode is specified" broke code that used
sys.stdin = sys.stdin.detach() with FileInput(mode='rb') in Python 3.3
I've attached the patch that makes FileInput to accept detached sys.stdin
(without 'buffer' attribute) in binary mode.
----------
components: Library (Lib)
files: fileinput-detached-stdin.diff
keywords: patch
messages: 229859
nosy: akira
priority: normal
severity: normal
status: open
title: restore accepting detached stdin in fileinput binary mode
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file36997/fileinput-detached-stdin.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22709>
_______________________________________
More information about the Python-bugs-list
mailing list